Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
After setWindowFlags() is called with flag Qt::WindowCancelButtonHint, and close button is clicked. Application crashes.
This behavior is found in Qt 4.4 on Windows vista.
#include <QtGui>
class TMainWindow : public QMainWindow
{
public:
TMainWindow(QWidget* parent = 0)
:
QMainWindow(parent) {}
void mousePressEvent(QMouseEvent*)
};
int main (int argc, char** argv)
{
QApplication app(argc, argv);
TMainWindow w ;
w.show();
return app.exec();
}