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

QToolBar does not resize on Mac when QToolButton text changes (UnifiedTitleAndToolBar)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.8.x
    • 4.5.2, 4.6.0
    • Widgets: Main Window
    • None
    • Mac
    • macOS

      If you call setUnifiedTitleAndToolBarOnMac(true) and then use QToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon) you will get texts displayed below the icons on the Mac.

      For texts that never change this works fine. But if you put Undo and Redo actions in the toolbar and use the undo/redo framework, the texts vary, e.g. "Undo" (greyed out) becomes "Undo Delete" (after a deletion), and so on. Now what happens on the Mac is that when the width of the text changes (maybe not the first time, but certainly after two or three changes), the toolbar button disappears---you can get it back by resizing the window (even if that means making the windows smaller!).

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

            sorvig Morten Sørvig
            m.n.summerfield Mark Summerfield
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes