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

Questioning how a minimized, modeless child dialog is drawn

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0 RC2
    • None
    • Windows 10
    • Windows

    Description

      The attachment shows how a minimized, modeless child dialog is drawn.

      You can easily reproduce this behavior running the qt WIndow Flags example, selecting "Dialog", check marking "Window minimize button", then minimizing the resulting Preview window.

      For an app with more than one minimizable, modeless child dialog , the default representation is not acceptable since there is no way to tell one minimized, modeless child dialog from another.

      Apparently, setWindowIcon() is not obeyed when a minimized, modeless child dialog window is drawn.

      Overriding paintEvent() and doing something different when isMinimized() does not work because apparently the paintEvent() isn't even called under the minimized context.

      setMinimumWidth() is not obeyed when drawn minimized.

      Could the default drawing of a minimized, child dialog be improved?  Is there a workaround to drawing the minimized state myself?

      Somewhat related Windows reference https://docs.microsoft.com/en-us/windows/win32/gdi/drawing-a-minimized-window

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sbisque Stephen M. Bisque
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes