Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.15.2, 6.4.1
-
None
-
os:Win7 x64 and Win10 x64
complier:MSVC2019 x64
Qt:6.4.1 and 5.15.2LTS
Description
/*
os:Win7 x64 and Win10 x64
complier:MSVC2019 x64
Qt:6.4.1 and 5.15.2LTS
Bug Description:when you put close() or QApplication::quit() in mousePressEvent and use RightButton pressed to emit this event,Qt will act close() or QApplication::quit() and extraly active the system right buttton menu as well,which is unexpected.
This bug appears when QtCreator is minimize in debug mode,at this time the background of the application is system desktop,but when you debug with QtCreator Maximization,it's normal as usual.
And in release this bug is no limitation ,which happens everytime you click rightbutton.
*/
//MainWindow directly inherits from QMainWindow,
//It's a newly built Qt Widgets Application defaultly with mousePressEvent overrided
void MainWindow::mousePressEvent(QMouseEvent *e)
{
if(e->button()==Qt::RightButton)
}