qevent Questions
2
Solved
In PyQt5, we can validate an event occurrence using QEvent class, for example QEvent.MouseButtonPress. In PyQt6 the statement is no longer valid. I have checked the members of both PyQt6.QtCore.QEv...
2
I need help to understand to use QEvents in QT, this is driving me crazy.
I am writting an application using custom events, but as in QApplication::postEvent function, it's necesary to specify the...
1
Solved
It should be simple but somehow it's not working as it should. I'm trying to catch with eventFilter mouse button press or release on QListWidget. ListWidget was prepared under UI. I've installed ev...
Iene asked 26/2, 2017 at 21:53
2
Solved
I want to debug event handling code and would like to convert QEvent::Type enum's value to a human-readable string. QEvent has a Q_GADGET macro, so presumably there's a way of pulling that off?
4
Solved
I have an app (not related to any game where the W/A/S/D keys may have special meanings for navigation) where there is a QFrame. I overrode the keyPressEvent() to get the text being typed through k...
3
Solved
I have an event filter and I noticed when I click to expand/collapse a tree branch I get QEvent::MetaCall. I was thinking about using this to roll my own expand/collapse code, but I don't know how ...
1
Solved
I have to create an 2 custom events.
I followed this link & made my code :--
Is there a cleaner way to register Qt custom events?
Is it the right way to create & post & pass some data(...
1
Solved
Is it possible to keep a QWidget open after close button clicked? Suppose that widget is main widget. i.e. not child of another widget.
1
Solved
Background
I've made a custom widget with QLineEdit and several QPushButtons to use it with custom item delegate:
class LineEditor : public QWidget
{
public:
explicit LineEditor(QWidget *parent = ...
Whitmire asked 27/8, 2012 at 16:7
1
Solved
I'm displaying a popup window when the mouse cursor is over a certain widget and I'd like to hide this popup when the mouse leaves the widget.
To do it, I reimplemented leaveEvent(). This seems to...
1
Solved
I have a .h file with such code:
const QEvent::Type MyOnEventType =
QEvent::Type(QEvent::registerEventType( QEvent::User + 500 ) );
This header uses twice in application. I found a problem that...
1
Solved
I need to create several custom event classes for a Qt application.
Right now, it looks like I will need to implement the following event type registration code for each event class:
class MyEven...
1
© 2022 - 2024 — McMap. All rights reserved.