qt

Side by Side error running Qt Creator

On Vista Ultimate (No SP), I installed Qt Creator 1.3 from Nokia, using the Windows Binary installer. When I tried running it, I got a side-by-side error saying: "The Application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail." The Event Viewer Logs showed: "...

dynamic_cast returns NULL but it shouldn't

Hi I'm having the following class hierarchy: class IStorage { [...] } Q_DECLARE_INTERFACE(IStorage, "ch.gorrion.smssender.IStorage/1.0") class ISQLiteStorage: public IStorage { Q_INTERFACES(IStorage) [...] } Q_DECLARE_INTERFACE(ISQLiteStorage, "ch.gorrion.smssender.ISQLiteStorage/1.0") class DASQLiteStorage: public Q...

Qt, widget generated with inheritance?

I remember when messing around with Qt seeing something where it was like class MyForm : QDialog { } Instead of class MyForm { void SetupUi(QDialog* dialog); } How do you generate the inherited form? ...

Adding Vertical headers to a QTreeView

I have a QTreeView subclass (and QAbstractItemModel subclass) which has a nice horizontal header. I would like to add vertical headers (going down the left side) to match. But unlike QTableView which has separate vertical (setVerticalHeader()) and horizontal headers (setHorizontalHeader()), QTreeView only allows a single header (setHeade...

Is there any Visual Studio-like tool for creating GUIs for Python?

My girlfriend asked me if there was a tool (actually, an IDE) that would let her create her GUI visually and edit functions associated with GUI-related events with little effort. For example, she wants to double-click a button she just created and immediately see (and edit) the code associated with that button's on-click event. I believ...

Using .pri files in Qt

This is a followup to this question How to create a subdirectory for a project in qt-creator?, where the first answer didn't work for me. I resolved it by manually writing every file into the main .pro file, which is not that much harder, but I still wonder - how exactly .pri files work, and why the solution linked above didn't add the...

QMetaObject::invokeMethod returns true, but method is never called

hello. I'm trying to run a method on the GUI thread using QMetaObject::invokeMethod, which returns true. But, if I use Qt::QueuedConnection my method never gets called (even if invokeMethod returns true). This is what I'm using: QMetaObject::invokeMethod(this, "draw_widgets", Qt::QueuedConnection) I don't get any error messages or an...

QMovie play state notification

Hi. Is there any notification I can use to determine whether a QMovie is playing or not? ...

How to get details about the selected items using QTreeView?

Hello, I'm using QTreeView with QDirModel like this: QDirModel * model = new QDirModel; ui->treeView->setModel(model); ui->treeView->setSelectionMode(QTreeView::ExtendedSelection); ui->treeView->setSelectionBehavior(QTreeView::SelectRows); This works fine, however, I'm not sure how to get the details about the files I select. I've got...

COM object Enum with QT

I am unable to read the answer for this from the QT manual so hopefully someone here can help me. There is a COM event described like this : Event OnlineStatus(pUser As IUser, ByVal Status As TOnlineStatus) where TOnlineStatus is Enum with members like "Constant olsAway = 2". How do I connect a slot to that event if I am using the ...

Qt, Color Picker Dialog?

Is there a color picker dialog for Qt like the following? Also it needs to have a OnColorChanged signal which is called when ever the selected color changes. I want to give a live preview when they are changing the colors, that is why. Using google I could only find this one that was a triangle in side of a circle and personally I th...

QTabBar vs QTabWidget

Hello, I am using QTabWidget in my project. Is there any stron reason I should use QTabBar and not QTabWidget? What advantages I have if I use QTabWidget? Thanks, Rahul ...

Qt: Dragging a widget to scroll the widget's parent QScrollArea?

I've got a long horizontal QLabel displaying a png (the image shows a signal/time graph). Under that, I've got a QTableWidget. Both of these are in a QScrollArea because I want them to stay vertically aligned (the cells in the table correspond with the signal seen directly above them). I'm trying to add a handler to the QLabel such that ...

How to Add this functionality to Qt 4.6 embedded linux QWS ( Qt Windowing System) ?

I want to send an event to an Qt Application named "Video Player" from Qt Server when any of the running application 's any widget gets Paint Event. How to do it? ...

Do you know any mainstream desktop applications developed with Python and Qt?

Hi i'm developing a small prototype of a desktop application using Qt and Python because i would like to distribute it in a multiplatform way. A friend of mine is annoying me on messenger because he claims that there are not known cool mainstream desktop apps developed with Qt and python technologies so, what i am doing, is just an exerc...

Beneficial to limit scope of Qt objects?

Qt objects which are allocated with new are pretty much handled for you. Things will get cleaned up at some point (almost always when the parent gets destructed) because Qt objects have a nice parent child relationship. So my question is this: given that some widgets exist for the life of the application, is it considered good/beneficia...

How do I reuse paintings in a Qt widget

During a paint event, How can I reuse previous paintings so that I can just paint on top of the previous result. Right now the whole rendering area needs repainting. gonna try QPixmap. Do I absolutely need to use update? ...

Porting threads from QT3 to QT4

I am porting an application from QT3 to QT4, and keep running into problems when a thread is updating a QProgressDialog. The original code was roughly designed like so: class ScanProcess : QObject{ Q_OBJECT public: QProgressDialog* progress; private: ScanProcessThread* thread; }; class ScanProcessThread : QThread { Q_OBJECT public:...

How to install a Windows service using Qt?

We have an existing C++ application which uses WinAPI (let's call it "SvcApp"). We have another C++ WinAPI application called "MgrApp" which installs and starts "SvcApp" as a Windows service. However, we'd like to replace "SvcApp" with a Qt application. I may be misinformed, but it seems like it's not possible to use <windows.h> from a ...

Qt, Signals without naming?

Is there any way to use the signals without MOC and without the connecting via names? My one problem with Qt is that you have something like this->connect(this->SaveBtn, SIGNAL(click()), SLOT(SaveClicked())); And there is no error detection to tell that is wrong other then finding out the button doesn't work or searching through their ...