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

X to close button disabled for QFontDialog (and others)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.1.0
    • None
    • Windows 7, 64 bit.

    Description

      If I build the standard dialogs example with Qt 5.1 and Visual C++ 2012, the X button in the upper right hand corner is disabled for QFontDialog. It is enabled for QColorDialog and others in the same example. I first noticed this when all the dialogs in my code had the same problem. I found I could fix it by adding this->setWindowFlags(Qt::Window); But it's not obvious how to fix it for QFontDialog. (There is a cancel button unless you turn it off, so it's not a big problem.) Qt 4.84 did not behave this way, Qt 5.02 does. I don't have all possible compiler versions installed, but I don't see any compiler or 32/64-bit differences. I don't see anything in the docs indicating whether the old or new behavior is expected.

      Attachments

        For Gerrit Dashboard: QTBUG-32240
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            wssddc Bob Babcock
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes