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

Torn-off menu's title

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.6.0, 4.6.1, 4.6.2, 4.6.3, 5.9.0 Beta 2
    • Fix Version/s: 5.9
    • Labels:
      None
    • Environment:
      Both Linux and Windows versions
    • Commits:
      445191bba8216276e6200157906ca9d138d7be04

      Description

      Torn-off menus do not set their window title propertly (shown application execuable name instead of menu title).

      This bug is due to following line in "src/gui/widgets/qmenu.cpp" in constructor of class "QTornOffMenu(QMenu *p)":
      setWindowTitle(p->windowTitle()); /// line no 119 in version 4.6.2

      This assumes that menu's have a property "window title", but such property is usually not set (especially while creating forms from QtDesigner).

      Obviously this line in "qmenu.cpp" should be:
      setWindowTitle(p->title().remove("&"));

        Attachments

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

          Activity

            People

            • Assignee:
              dedietri Gabriel de Dietrich (drgvond)
              Reporter:
              victor_yacovlev Victor Yacovlev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes