I would like to be able to check if the key is pressed at any time. I imagine such a solution: To check if the right arrow key is pressed it would ...
I would like to be able to check if the key is pressed at any time. I imagine such a solution: To check if the right arrow key is pressed it would ...
QTouchEvent always called 4 times with any interaction with the screen. Even if i just touch the screen for a 0.1 second (not moving and not released ...
Suppose 2 QThreads are running with following relation: So when an object from one thread raises a signal, the other thread's slot is invoked. As d ...
I want to filter some unwanted events sent to my worker QThread by QCoreApplication::postEvent(...), before it actually processed in event loop. When ...
I have a QDockWidget in my Mainwindow with a QTableWidget and two QPushbuttons. Of course, I can click the buttons with my mouse, but I want also to " ...
There is a "entered" signal for a QTreeView Widget, which I can use to check if my mouse moves over an item. Is there a way to implement an "left" s ...
I am now creating a simple video player in QT. I created a slider that is connected with Connect to a multimedia player (he is responsible for runnin ...
I'm actually writing a module in qt (container) inerhiting from QWidget which is containing multiple plots presenting a graph where all of them inerhi ...
I need to destroy derived from QWindow object immediately after constructor done if some conditions in constructor will be true. There is member vari ...
I have stackedWidget and I want to capture all mouseClickEvents of his childs, independendly of their types. They can be added and removed later (remo ...
I would like to propagate event from a QML signal handler to C++ procedure but don't know how to pass the "event object". Take a look at this situatio ...
I am trying to navigate QStackedWidget Item by using KeyPressEvent. But am not able to do it. What Signal function we should use for keyPressEvent? M ...
I want to show or hide items in QStackedWidget. When I press Enter button it should show a stacked element and when I press say a left button it shoul ...
I'm attempting to implement a simple, lightweight system for recording Qt GUI events and playing them back from a script. I thought this would be fair ...
I can't find the way to attach mouse events to scene. Without View all events are capcured, but when commented out, only mousePressEvent works. Please ...
I have a class View that incorporates my QGraphicsView but I am having trouble inheriting from it. My code is as follows: And Game inherits from Vi ...
I have a customWidgets with some components (combobox, lineEdit, labels..etc), This customWidget is added to a QListView using setIndexWidget(QModelIn ...
How to Play .swf file in QT mobile Application. ? As I have applied below two ui->webView->settings()->setAttribute(QWebSettings::PluginsEna ...
I've just the documentation on the Qt event system and the QEvent class. I'm interested in the behavior of the QObject::event() method. The documentat ...
I have a QDialog which I open like this: The dialog opens just fine, but unfortunately "Hello World" isn't printed when calling openDialog() - even ...