Wierd behaviour after call to QWidget::winId().
-
Hi,
I have a QFrame object. I cast it to QWidget and then call the windId() method. After the call to winId() the mouse clicks on buttons and touch events stop working. The same behavior is observed with effectiveWinId().
When I use internalWinId() and effectiveWinId(), things work fine. I do not loose the mouse clicks and touch events on buttons.
There is a very old bug which still appears unresolved.
https://bugreports.qt.io/browse/QTBUG-30181I think I have run into the same problem.
I am using Qt 5.15.8 - GCC 9.4.0 64 bit - Ubuntu 20.04.
Can you please help me, whether its a bug or am I doing something wrong?
Is it ok to use internalWinId() instead of winId() or should I take care of something?
Thank you,
Tahir -
Hi,
I have a QFrame object. I cast it to QWidget and then call the windId() method. After the call to winId() the mouse clicks on buttons and touch events stop working. The same behavior is observed with effectiveWinId().
When I use internalWinId() and effectiveWinId(), things work fine. I do not loose the mouse clicks and touch events on buttons.
There is a very old bug which still appears unresolved.
https://bugreports.qt.io/browse/QTBUG-30181I think I have run into the same problem.
I am using Qt 5.15.8 - GCC 9.4.0 64 bit - Ubuntu 20.04.
Can you please help me, whether its a bug or am I doing something wrong?
Is it ok to use internalWinId() instead of winId() or should I take care of something?
Thank you,
Tahir@Tahir-Majeed said in Wierd behaviour after call to QWidget::winId().:
Can you please help me, whether its a bug or am I doing something wrong?
Without even a single line of code?
Please provide a minimal compilable example. -
@Tahir-Majeed said in Wierd behaviour after call to QWidget::winId().:
Can you please help me, whether its a bug or am I doing something wrong?
Without even a single line of code?
Please provide a minimal compilable example.@Christian-Ehrlicher Thank you, I will create a Minimal Compilable example that can reproduce the bug. Currently, I have a proprietary code that I can not share.