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

setWindowFlags, CustomizeWindowHint, FramelessWindowHint etc does not work correct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0 RC1
    • 5.0.0, 5.1.0
    • GUI: Window management
    • None
    • Mac cocoa
    • be405c86f8efac7c6bc8b749725d6d0e0499314d

    Description

      SetWindowFlags looks broken in Qt5, specially if it is being set on QDialog.

      int main(int argc, char *argv[]) { 
      
      QApplication mainApp(argc, argv); 
      
      QDialog *dialog = new QDialog(); 
      //dialog->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); 
      //dialog->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint); 
      dialog->setWindowFlags(Qt::Dialog |Qt::CustomizeWindowHint| Qt::FramelessWindowHint);
      dialog->show(); 
      
      return mainApp.exec(); 
      } 
      
      

      It can be easily seen with Qt example windowfags:
      Steps:
      Run the WindowFlags
      choose Dialog in type section:
      1: check customizeWindow Hint
      Result: You still see window decoration (it should remove decoration)
      You also see only maximize button (there should be no button/titlebar)

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes