hi , all.
i use Qt 5.5.1 , Windows 7 64 bit , mingw492.
i use setWindowFlags(Qt::Popup) in my widget , but i found mouse hover event is not working.
How to solve it ?
if i use Qt 5.3.1 , There is no problem.
hi , all.
i use Qt 5.5.1 , Windows 7 64 bit , mingw492.
i use setWindowFlags(Qt::Popup) in my widget , but i found mouse hover event is not working.
How to solve it ?
if i use Qt 5.3.1 , There is no problem.
Last edited by tiaoweiliao; 8th August 2016 at 09:18.
This could be Qt bug , i don't know what to do now.
Can anybody help me?
Yes, if it worked in an older version it could very well be a bug.
Can you create a small test program and attach it?
Maybe someone can find a solution or workaround.
Cheers,
_
thanks, My program is very simple.
//in MainWindow constructor , W_Widget Inherits QWidget
W_Widget * myPopupWidget = new W_Widget(this);
myPopupWidget->setWindowFlags(Qt::Popup);
myPopupWidget->show();
//in w_widget.cpp
W_Widget::enterEvent(QEvent * e){
qDebug()<<"enterEvent.";
}
no output information in Qt5.5.1, but There is no problem before Qt5.5.1.
Sorry, I wasn't clear enough.
I meant attaching a ZIP or similar with a program that can actually be built and run.
In any case, have you tried enabling "mouse tracking" on the popup widget?
Cheers,
_
thanks , i use Qt5.4.2 is no problem.
Bookmarks