qt

Connecting to a signal hidden by QMessageBox

I want to show the user a warning QMessageBox with a link inside. This is relatively easy, I just need to make sure I set the RichText text format on the message box and the QMessageBox setup does the rest. However, I would also like to close the message box (as in some-sort-of-call-to done()) if the user clicks on the link - the semanti...

Prevent a QMenu from closing when one of its QAction is triggered

Hi, I'm using a QMenu as context menu. This menu is filled with QActions. One of these QActions is checkable, and I'd like to be able to check/uncheck it without closing the context menu (and having to re-open it again to choose the option that I want). I've tried disconnecting the signals emitted by the checkable QAction with no luck....

Qt 4.5.3 QEvent::EnterEditFocus

In Qt docs EnterEditFocus is a event about an editor widget gaining focus for editing but using Qt 4.5.3 the compilation fails with ‘EnterEditFocus’ is not a member of ‘QEvent’. What's wrong? ...

Is there a demand for Touchscreen-based UIs for Car/Mobile PC Platforms?

Does anyone know if there's a very big demand for a touchscreen-based keyboard less UI for Car, Navigation, or Mobile devices? I know that Android is a very big, very popular platform. So is Cocoa Touch. What I'd like to envision is using a Java UI with something like Qt that can be applied to a touchscreen. I would initially use And...

QT Repaint/Redraw/Update/Do Something!

I'm New to QT. I understand that you can force a display refresh, but I've pulled all my hair out trying to figure out how. Here is what I'm specifically trying to do. I press a button (onClick signal event), which runs code that changes an image (QLabel) on the display, waits for input, and then proceeds by changing a new image (diffe...

Qt winId() forcing 32bit values

Hi all Im trying to embed a display from an alien application (python OCC) into (Py)Qt using the winId of the widget. But when i pass it to OCC i get an overflow error. Inspecting the winId qt returns its 4318283408 which is more than a 32bit number. Im running 64bits (osx) and both libraries are compiled for 64bit, but i have a hunch t...

How can I get the selected VALUE out of a QCombobox?

In Qt, I can get the selected text of a QComboBox by using the combobox->currentText() method. How can I get the selected value? I checked over http://qt.nokia.com/doc/4.6/qcombobox.html for help but I couldn't find a method currentData() which I expected to find. I could only find combobox->currentIndex() Is there a smarter way to do...

Wireshark integration with Qt

For my handheld embedded device I want to use WireShark network analyser to measure the Data, VOIP and IPTV performance testing. But I don't want all the features of WireShark. So I'm planning to use the WireShark library API and for the GUI, I am planning to use Qt. Can anyone comment on this? Is this the right decision? The platform I'...

PyQt vs PySide comparison

I currently develop many applications in a Qt heavy C++/Python environment on Linux, porting to PC/Mac as needed. I use Python embedded in C++ as well as in a stand alone GUI. Qt is used fro xml parsing/event handling/GUI/threading and much more. Right now all my Python work is in PyQt and I wanted to see how everyone views PySide. I'm i...

How to remove maximize button in Mac OS X tool window in Qt

I have a floating tool window. It works fine on Windows, but I can't get rid of the maximise button on Mac OS X. I have tried unsetting Qt::WindowMaximizeButtonHint and setting the window to fixed size. Nothing seems to work. MyWidget::MyWidget( QWidget* parent ) :QWidget( parent, Qt::Tool | Qt::CustomizeWindowHint ) { setupUi( th...

Central QWidget [Qt]

Hi, I have main window and in this window I have QListWidget. I want this list to be central widget in the main window and I know that I can do that by writing code like setCentralWidget(QWidget*) and it works (list is spread on the whole mainwindow) but this isn't reflected in designer when the list is still in this same position and ha...

How do I align QtWidget to right in the QtToolBar?

Hi, I have some QtWidget (QtLineEdit) and I would like to align it to the right in my QtToolBar. Is there any simple way to do it? Thanks. ...

QTableView - what signal is send when user selects a row by clicking to it?

Is there a signal which is emmited when user selects a row in QTableView by mouse (sigle selection model)? ...

Qt's pragma directives

Hi, Could anyone point me out to an article, where pragma directives, available in Qt enviroment would be discussed? Thank you. ...

Qt Python: QTextEdit - display input

Hi Everybody, I have a QTextEdit... it works with 'clear()' when a pushbutton calls 'CleanComments' to clean the input done by the user. Here is the code: def CleanComments(self): self.textEditInput.clear() def showInput(self): print "show input: %s" % self.textEditInput.show() def buildEditInput(self): self.textEditInput...

QtWebKit Manager

Hi I've been asked to research a way to manage a QTWebKit module outside of QT. The idea is to use QTWebKit as an interface(GUI) for an application. The desired (Manager) should work as a communication mean between the GUI and the main application which is written in C++. The manager should be designed in a way that it can produce java...

qt on Win CE 5.0 crash

Good day all, It's the first time I am using Qt on Windows CE and I ran into an issue. Maybe someone can help me with it. I will describe my set up. I am using XP with Visual Studio 2005 an Qt Add-in version 1.1.2. I downloaded Qt source for Windows CE and followed the instructions on these (http://doc.trolltech.com/4.4/install-wince.h...

QWebView get content type

When I click on a link in a QWebView I need to perform some actions based on the MIME type of that link. Obviously when I click on the link QWebView tries to navigate there, but how do I get the content type after this? ...

Qt: How to connect QScriptEngineDebugger to QScriptEngine in separate thread?

I need to process script in separate, non-GUI thread since script calls C++ function that can take very long time to process (seconds). Is it possible to connect QScriptEngineDebugger to my QScriptEngine in non-gui thread? The problem is - if I put QScriptEngineDebugger in same thread as QScriptEngine (non-gui) than debugger will crash ...

How to intercept ALL signals emitted by a given event in QT?

I can imagine that there might be quite a few of them depending on the event, but at the same time, I guess this can be a best way to debug, and an interesting lesson. Why would I need it? I'm using some custom class based on the QWidget, which does not expand when I de-attach a QDockWidget based in the same window. Knowing what signals...