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

In windows and Linux system, call setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint), show different display effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.5.1, 5.9.9
    • Widgets: Styles
    • None
    • Linux/X11

    Description

      In windows and Linux system, call setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint), show different display effect. The code is: 

      QDialog *pDialog = new QDialog(NULL);

      pDialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint); pDialog->setWindowTitle(QString("asdfs"));

      pDialog->exec();

      On windows, an untitled rectangle is displayed, but on Linux, the system title bar is still drawn. This leads to a problem,We have a scene like this: A customized frame is inherited from QDialog, and Qt::FramelessWindowHint is set to hide its title bar. A part of the client area is drawn into a title bar. However, when Qt::WindowMinimizeButtonHint is set, two title bars will be displayed. Why? How to solve this problem?

       

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            dongcy Dong Chunyu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes