Hi, I am trying to get the statusbar to update with the FPS of the contents of a QGLWidget. I have connected them as follows (In class MainWin):
glWidget = new GLWidget;
ui.verticalLayout->addWidget(glWidget);
connect(glWidget, SIGNAL( updateFPSSignal(float) ),
this, SLOT( updateFPSSlot(float) ));
}
The ...
I'm making the transition from Eclipse CDT (with Qt integration plugin) to QtCreator 2.0 but there is still one thing that bother me with QtCreator :
When I debug in QtCreator, I don't see my qDebug messages inside the Application output tab until I stop the application I'm debugging... Then they are all displayed at once which is not v...
I'm trying to use QtService from QtSolution in a Qt project.
I've unzipped it and run:
configure.bat -library
qmake
mingw32-make
the debug and release dll were placed inside C:\Qt\2010.03\qt\bin\
Examples were correctly built .
I added this line at the bottom of my .pro file:
include(../QtSolutions/qtservice/src/qtservice.pri)
and I ...
I have some code creating a QTabWidget from Python using PyQt4. I want to get a 'throbber' animated gif in the tab. The /only way/ I have found how to do this is the following convoluted method.
tabBar = self.tabReports.tabBar()
lbl = QtGui.QLabel(self.tabReports)
movie = QtGui.QMovie(os.path.join(self.basedir, "images\\throbber.gif"))
...
I have QGraphicsTextItem objects on a QGraphicsScene. The user can scale the QGraphicsTextItem objects by dragging the corners. (I am using a custom "transformation editor" to do this.) The user can also change the size of the QGraphicsTextItem by changing the font size from a property panel. What I would like to do is unify these so tha...
I really wanna do cross platform applications. I have great experience in .NET, so the only option is Silverlight. But it's not as powerful as WPF (yet).
Is it possible to use WPF's controls like Menu & ToolBar?
Is it possible to make real installers for Silverlight apps? (Not just out of browser install.)
Is it really worth it, or s...
I recently refactored old code files from ABCFile.cpp/.h to AbcFile.cpp/.h to match my company's coding standards. After updating all the references to the old case styling, the code is compiling and running just fine, but looking at qt's automatically generated moc files the casing matches the old style.
What do I need to update qt's ...
I need to import file sequences into a Qt program. Import itself is not hard, but I'm pondering what might be the most easiest way to detect if the files form a sequence, e.g.:
filename_00001.png
filename_00002.png
filename_00003.png
etc.
Now, I have a drag'n'drop import working, and I'm sorting the list of imported files alphabetical...
The documentation for QStringList QCoreApplication::arguments() (Qt) states that:
Usually arguments().at(0) is the
program name, arguments().at(1) is the
first argument, and arguments().last()
is the last argument. See the note
below about Windows.
It further elaborates:
On Windows, [...] the arguments() are
construct...
Assume that a program is run several times in identical fashion. In each run, the same set of objects is insert into a QHash in the same insertion order; then the objects in the QHash are iterated. The question is will the objects be iterated in the same order in each run of the program?
...
Hi everyone,
I am develop a stock view app on iPad. I figure out that qtstalker app can run on Mac, with Qt library. Now I can run qtstalker on Mac, compile with XCode after qmake all the subdirectory of qtstalker.
Now I would like to port this program to iPad. I know that I can not port completely without modification. How I can confi...
Say I have a liner gradient as shown:
QLinearGradient linearGrad(QPointF(0, 0), QPointF(0, 100));
linearGrad.setColorAt(1, Qt::red);
linearGrad.setColorAt(0.5, Qt::yellow);
linearGrad.setColorAt(0, Qt::green);
How to get the color of the point QPointF(0, 28.5) in this gradient?
Indeed I want to have this kind of color distribution to...
Hi,
I've created 2 widget with Desinger (Widget1 and Widget2) , each one has it's tab order defined.
A third widget (Widget3 )is defined programmatically and contains the above 2 widget in a vertical layout.
In on a symbian non touch device.
When I focus on widget3 I want to give the focus to widget1. Then go from widget1 to widget2 usin...
I have found quite good stuff here. If you know other sites that have some good code for Qt library (some additional codes, good examples, except the Qt standard examples, of course), please share with us.
...
i am trying to enable the delete key in my treeview. This is what i have so far:
class delkeyFilter(QObject):
delkeyPressed = pyqtSignal()
def eventFilter(self, obj, event):
if event.type() == QEvent.KeyPress:
if event.key() == Qt.Key_Delete:
self.delkeyPressed.emit()
print ...
Hi,
i have a graphicsview and graphicsscen but i don't no how to install and handle the event filter for getting the keyboard events. i appreciate your help regarding the same.
Thanks in advance.
...
Say there is a QPushButton named "Draw", a QLineEdit and a QFrame. On clicking the button I want to take a number from QLineEdit and draw a circle in a QFrame. How can I do this? Please provide me with the code.
P.S. The problem is that draw methods of the QPainter should be called in drawEvent method.
...
Just trying to mess around with Qt and SQLite to get familiar with how things work- I haven't really done DB programming since my vb6 days, so please be easy ;]
I'm just trying to get the result of a query and I'm trying to follow some examples I found online (namely this one). The process seems simple enough: create the QSqlQuery objec...
Disclaimer: I know there aren't any lawyers here, but I'd like to hear some opinions.
I'm making a Python application using PyQt4 for the GUI. It will be open source, maybe GPL, but rather MIT/BSD licence since I don't see the value of copyleft for it. Since I cannot rely on users to have PyQt installed (in fact, I'm safe to assume that...
Hi
I'm looking for a code to implement a Web Service with Qt (server side)
If you have any information I will appreciate
Regards
...