I have this Qt Designer made main-window: main.py: and this code : myapp.py : When I click the Test-set-parent_None button the QGroupBox Widget ...
I have this Qt Designer made main-window: main.py: and this code : myapp.py : When I click the Test-set-parent_None button the QGroupBox Widget ...
There is QComboBox with QCompleter. It is necessary to show all complementer elements when clicking on the LineEdit combobox. There is this code: I ...
I've been using QEvent::KeyPress only to emulate keypresses for navigating QTreeView and QTableView without explicitly releasing the keys afterwards. ...
. Answers to this question are eligible for a +50 reputation bounty. Ba ...
I have a custom layout BoardLayout, which inherits QLayout. It is written in analogy to BorderLayout example (https://doc.qt.io/qt-5/qtwidgets-layouts ...
I couldn't understand how qt handle events (e.g timer event, socket event etc.) and signals in same event loop.As I understand,timer and socket events ...
I'm trying to implement Drag and Drop behavior, across my whole application, I would like to execute some action when a drop occurs, no mater where in ...
In my application windows all have a QDialog context menu for settings etc, accessible with a right mouse click. In one of these dialog boxes we want ...
I expect my program to print "mouse on label name" when my mouse is located on the labelname (a QLabel), and to print"mouse not on label name" when my ...
I'm trying to catch mouse click on QDateEdit widget by handling QEvent::MouseButtonRelease event, but can't find a way to do it. I tried to override Q ...
NOTE: below is in edit with a more complete example I want to implement the following in Qt (specifically PyQt, but I believe that the solution will ...
QEvent has a type() member function which returns the event type as enum value. Should I check dynamic_cast result for QEvent* if I already checked ev ...
I have a small dialog like this: When I move the dialog into another place on the desktop, how can I get the new global coordinate of an element in ...
We are using Qt 5.10/C++ and I'm asked to implement a feature using the QSlider class. My colleague wants me to emit a signal, whenever the user perf ...
I want to handle the QEvent::WindowDeactivate and for this I overload this function on my QMainWindow derieved class. And after that, this event f ...
I am working on a widget that needs to update itself when another widget it is matched with moves or is resized. Currently, I have the other widget do ...
I custom my own item, which inherits from QGraphicsItem, override the mousePressEvent function, then I add it into QGraphicScene. When I debug, I mov ...
I want to filter some unwanted events sent to my worker QThread by QCoreApplication::postEvent(...), before it actually processed in event loop. When ...
Wacom has no official python SDK. Nevertheless, PyQt has a QTabletEvent that handles these tablets. Alas, I found no working python example of this. ...
I created myself simple window for debugging purposes. It's completely separate QMainWindow, so that I can put it on the other monitor when testing th ...