[Interest] How to prohibit moving of the QDialog on Linux
Igor Mironchik
igor.mironchik at gmail.com
Tue May 5 14:06:44 CEST 2015
Hi.
In the following code sample:
#include <QApplication>
#include <QDialog>
class Dialog
: public QDialog
{
public:
Dialog()
: QDialog( 0, Qt::Dialog | Qt::FramelessWindowHint |
Qt::WindowStaysOnTopHint )
{
resize( 300, 300 );
}
};
int main( int argc, char ** argv )
{
QApplication app( argc, argv );
Dialog dlg;
dlg.show();
return app.exec();
}
I receive blank rectangle as I expected, but when I click on it and move
mouse cursor window moves with the cursor. How to prohibit it on Linux?
Thank you.
More information about the Interest
mailing list