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

The enabling the unifiedTitleAndToolBarOnMac property invalidates layouts of widgets contained in a toolbar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.5.2
    • Widgets: Layout
    • None
    • Observed on Mac 10.5.8, Qt 4.5.1 and Qt 4.5.2, built using Qt Creator 1.2

    Description

      In the attached sample GUI applcation, a searchtool widget is added to the main application toolbar.

      That widget is a composite of child widgets with a layout that attempts to place a QLineEdit control on the left edge of the toolbar using a horizontal layout.

      The "trick" works for normal toolbars.

      But on Mac, when the unifiedTitleAndToolBarOnMac property is enabled via setUnifiedTitleAndToolBarOnMac(true), the layout is defeated and the QLineEdit control is no longer left justified within the toolbar.

      To reproduce, build the attached project and use the "unify" toolbar button to set and unset the UnifiedTitleAndToolBarOnMac property. Observer the layout changes.

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            bernalkc KC Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes