Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.1
-
None
Description
When using setWindowFlags with Qt::CustomizeWindowHint on WinCE you will create a window with a close button in the right corner.
The following code will create a messageBox and set the flag, on desktop it will not have the close button in the frame but on WinCE it does.
It would be good if the Windows flags also had an option on WinCE to remove the close button from the Window frame.
Example Code:
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMessageBox hMessageBox;
QString Message( "Test" );
hMessageBox.setIcon( QMessageBox::Critical );
hMessageBox.setWindowTitle( "Fatalerror" );
hMessageBox.setText( Message );
hMessageBox.setWindowModality( Qt::ApplicationModal );
hMessageBox.setWindowFlags( Qt::CustomizeWindowHint | Qt::WindowTitleHint );
hMessageBox.exec();
return 0;
}