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

MDI sub-window invalidates set main window title

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.1
    • None
    • Windows

    Description

      For the QMdiSubWindow - the variable d->originalTitle stores original title.
      When the title is changed right after the QMdiSubWindow is called to be shown (before any events are processed by event loop), the QMdiSubWindow::eventFilter() doesn't update the title when the sub-window has min/max/close buttons disabled.

      In the QEvent::WindowTitleChange case in QMdiSubWindow::eventFilter() following condition is false:

      d->controlContainer->menuBar()->cornerWidget(Qt::TopRightCorner) == maximizedButtonsWidget()

      (Which is apparent as there are no min/max buttons). And therefore d->originalTitle is not updated. Resulting in faulty behaviour of showing the previous title instead.

      QMdiSubWindow is ofc maximized programatically before calling show.

       

      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
            filousov Pavel Celba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes