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

Inconsistency of ampersand handling in window title of docked and undocked widgets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.6.3, 4.7.0
    • Widgets: Main Window
    • None
    • WinXP SP3, VS 2008 SP1.

      I'm want to display '&' in docked widget's title. However, I can't do that because of its inconsistent handling.
      When it's docked, I have to use "&&" to display a single "&". However, once I undock it (under Windows), I see "&&" displayed in its title.

      It's better under Linux since even when undocked, the window contains its own title bar with a single "&". However, if I enable window manager title on that window, the window manager title displays "&&".

      I guess what should be done is that the widget's window manager title should be cleared of extra ampersands when undocking, while its real title should remain the same (so that accelerators can still be used).

      I'm attaching a sample .ui file that shows the behavior. Open it in Qt Designer, press ctrl-R and dock / undock the dock widget to observe the bug.

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

            Unassigned Unassigned
            alex_sh Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes