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...
Preconcert asked 17/2, 2021 at 4:12

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...
Plethora asked 12/2, 2012 at 7:2

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?
Tuneless asked 20/3, 2014 at 14:7

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...
Picasso asked 24/7, 2015 at 18:15

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 ...
Eta asked 4/6, 2012 at 19:31

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(...
Funds asked 2/10, 2013 at 10:28

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.
Spate asked 10/9, 2013 at 9:26

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...
Assignation asked 3/1, 2013 at 21:11

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...
Domiciliate asked 22/11, 2011 at 18:33

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...
Palatal asked 3/6, 2011 at 8:13
1

© 2022 - 2024 — McMap. All rights reserved.