Small toy app can be found here: http://gist.github.com/517445
I am trying to send artificial mouse event to widget and I use QApplication::sendEvent for that, next I check ev.isAccepted() and it returns False, even worse! Widget I've sent event to doesnt handle it (it is calendar widged and no date is picked) and I am in doubt that it ...
Qt makes me question my sanity and existence. I don't know why code that works in one program that I wrote will not work in another program I wrote. The following code is identical in both programs. In P1 it works correctly by only allowing left clicks. In P2 it is exactly the same, except the left click code is does something different....
Hi all.
I have three radio buttons, let's call them R1, R2 and R3. (R1 is in the checked set)
My problem is that I have a method called check() that gets the current radio button using:
def check(self):
if R1.isChecked():
#
if R2.isChecked():
#
if R3.isChecked():
#
Based on which radio button is activ...
Hello, everybody!
I have:
Swf-file, that a) makes one of its method available to the outer world through ExternalInterface.addCallback; b) calls predefined outer world method through ExternalInterface.call;
html-page, where this Swf-file resides. There are two javascipt methods in this html: one for calling Swf-published-method and on...
I am receiving the following warning when compiling a Qt project, but ONLY on Mac OS X with GCC. Windows with MinGW and Linux with GCC do not emit this warning.
/Library/Frameworks/QtCore.framework/Versions/4/Headers/qtextcodec.h:175: warning: 'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
Why is this showing up and how c...
I'm developing a Qt-based application and when I use macdeployqt on the bundle, the Qt plugins are not copied to the bundle.
However, if I run it a second time, they are. Additionally, "The svg icon plugin is deployed if the application uses the QtSvg module." is not fullfilled - my application does use QtSvg but the iconengines/* plugi...
How is it possible to have qlineedit->settext() to accept file of type .ma only?
...
I'm using the Sparkle framework in Qt. I've added the following to my .pro file:
LIBS += -framework Sparkle
QMAKE_CXX_FLAGS += -F/path/to/the/directory/sparkle.framework/is/in
However I get a compilation error saying "Sparkle/Sparkle.h" cannot be found. Framework headers physically reside in MyFramework.framework/Headers/*.h and are i...
I am trying to simulate a mouse click event in Python on the ui.goButton widget.
Here is what I did:
QtTest.QTest.mouseClick(self.ui.goButton, QtCore.Qt.LeftButton)
Is this the right way to do it? Cause it is not working.
...
I have created a QComboBox delegate which I use for a single column of a QTableView (each cell of that column is an individual combobox), the data which I want to display in my combobox returns from the database as a string of id's separated by a ';', my question is, how do I populate my combobox with this data retrieved by the database....
I have a C++ application using the QT framework. I'm trying to add an option for the user to be able to set the program to start automatically on startup.
My development machine is running OS X 10.6.
As my main Mac reference, I'm using this Apple documentation. According to the documentation, there are two recommended ways of doing thi...
I would like develop program with a lot of image processing. I would like to use Java, and JAI, but it seems to me, that Jai is old and no longer evolve? (http://java.sun.com/javase/technologies/desktop/media/jai/)
I wonder, is it better choice to use QT and c++?
Two main pros which I am looking for is: cross platform code and good le...
So, I'm building a project, and it uses functions from a compiled library (.dylib or .so). I have the headers and the library files (this is all part of QtRoot, btw) in appropriate locations, but when I try to build my project in Xcode, I get a debugger error:
dyld: Library not loaded: @rpath/libRIO.so
Referenced from: /Users/paultho...
I have this table
QSqlQuery createTblSMS("CREATE TABLE sms_tbl("
"isRead BOOLEAN NOT NULL,"
"readTime DATETIME,"
"arrivalTime DATETIME NOT NULL,"
"sender TEXT NOT NULL,"
"receiver TEXT NOT NULL,"
"smsContent TEXT,"
"PRIMARY KEY(arrivalTime, sender, ...
This is something I'd expect to be quite straightforward, but after a couple of hours browsing Visual Explorer online help and ploughing through various forums, I'm still at a loss...
Basically, I'd like to be able to create a custom Windows event which sends a vector of short integers to its recipient. I'd actually like to create the e...
I can't dereference a QMutableListIterator like an STL iterator - with *it.
I'm trying to use QMutableListIterator::value() but my program crashes. What is the right way to do this?
QFileInfoList files;
// populate list
QListIterator<QFileInfo> it(files);
it.toFront();
QFileInfo = it_top.value();
// crash
The error is
ASSERT: "item...
What I wanted is something like the figure below shows.
Thanks.
...
Why is my application bundle sometimes missing its icon and/or have this "cancel" symbol over it?
I have looked at the .plist file and the icon path and icon exist and are correct. If I right click the bundle and click Get Info, the icon shows up in the 'preview' section.
This happened after I moved around some code in my qmake file ...
On my system the lowest ID running right now is 1 (init). I'm making a small wrapper function around pidof and I was wondering, what is the lowest possible process ID a process can have?
The reason I ask is because I would like to return an integer from my function indicating "process was not running" (pidof itself returns an empty stri...
Hi there,
I have a problem when dealing with my QSqlQueryModel. I want to search the database for some items and select them in my QTableView with QItemSelectionModel which needs a QModelIndex.
What I don't understand is how should I search in order to get the corresponding QModelIndex for my model/view architecture.
I can't possibly u...