Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3999

WinCE: Dialog without a Close Button in the titlehint.

    XMLWordPrintable

Details

    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;
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes