Questions tagged [qt-events]
28 questions
1
vote
1 answer
How to destroy derived from QWindow object immediately after constructor done?
I need to destroy derived from QWindow object immediately after constructor done if some conditions in constructor will be true.
There is member variable which I want to set in constructor and check in window initializing function. But I don't know…

Ufx
- 2,595
- 12
- 44
- 83
1
vote
2 answers
Qt: capturing event before child
I have stackedWidget and I want to capture all mouseClickEvents of his childs, independendly of their types. They can be added and removed later (removed from stackedWidget, not deleted). How can I make this work?

Krzysztof Stanisławek
- 1,267
- 4
- 13
- 27
0
votes
1 answer
QT Mobile: How to Play .swf file in QT Mobile Application
How to Play .swf file in QT mobile Application. ?
As I have applied below two
ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled,true);
But i could not…

nisha.113a5
- 2,024
- 16
- 30
0
votes
0 answers
Issues to filter QInputMethodQueryEvent using Qt QWebEngineView
I am currently working on developing a simple web browser for an embedded system using Qt. The browser incorporates its own keyboard.
However, I am facing difficulties when it comes to interacting with the web page using the QWebEngineView class,…

Lerxt
- 1
- 1
0
votes
0 answers
Break a Chain of Events when I click outside the target QFrame
So I want to grab the QFrame and scroll it, so I'm using mouse-move-event to do it, but the problem I have is the event triggers even when I click outside the Frame that I set Mouse Tracking on. So I thought of stopping at least the mouse-Move-Event…

habibhassani
- 486
- 1
- 6
- 15
0
votes
2 answers
Opening QDialog in a non-blocking manner
I have a QDialog which I open like this:
void MyModule::openDialog() {
this->dialog->open();
printf("Hello World");
}
The dialog opens just fine, but unfortunately "Hello World" isn't printed when calling openDialog() - even after closing…

André Hoffmann
- 3,505
- 1
- 25
- 39
0
votes
1 answer
Why a layout is required for multiple widgets recieving events?
I'm actually writing a module in qt (container) inerhiting from QWidget which is containing multiple plots presenting a graph where all of them inerhit from QWidget.
So it's given:
1 container can have :
n plots where each of them contains
1…

dhein
- 6,431
- 4
- 42
- 74
0
votes
2 answers
delay in displaying QStackedWidget Item in qt
I am using QStackedWidget item. But for the first time it is taking time and after a while it is working properly.
mymainwindow::mymainwindow() : QMainWindow()
{
stack = new QStackedWidget();
list = new QListWidget();
…

Suresh
- 745
- 4
- 11
- 25
0
votes
1 answer
How to compress QEvents without using Qt internal headers?
Since the headers needed to iterate the posted event list in QCoreApplication::compressEvent are considered private, is there a way of getting equivalent functionality without depending on Qt's internal headers, but only on documented semantics of…

Kuba hasn't forgotten Monica
- 95,931
- 16
- 151
- 313
0
votes
1 answer
Pyside QgraphicsScene can't capture mouse events
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, help.
from PySide import QtGui, QtCore
class Window(QtGui.QMainWindow):
def __init__(self):
…

Alex
- 3,167
- 6
- 35
- 50
0
votes
1 answer
Qt QGraphicsView Event
I have a class View that incorporates my QGraphicsView but I am having trouble inheriting from it. My code is as follows:
class View: public QGraphicsView {//inherits qwidget -- so we can make it full screen there
Q_OBJECT
public:
…

JonMorehouse
- 1,313
- 6
- 14
- 34
0
votes
1 answer
Installing eventFilter on QListView for indexWidgets
I have a customWidgets with some components (combobox, lineEdit, labels..etc), This customWidget is added to a QListView using setIndexWidget(QModelIndex,QWidget) , My requirement is that when i click any component on the customWidget the QListView…

SAM
- 365
- 1
- 4
- 10
-1
votes
1 answer
Qt/Qml - Trigger QApplication/QQmlApplicationEngine events (key and mouse events)
I should trigger all events in my Qt/Qml application. In particular I'm trying to trigger key and mouse events. I would to implement a sort of standby with a QTimer that reset when the event is triggered.
Is possible to implement this feature in my…

daniele86
- 147
- 3
- 14