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

ApplicationWindow Layout Issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.1.0
    • None
    • Ubuntu 3.5.0-34-generic x86_64
    • d16f084b267140b4a901e437c3facebbdf08d89f 388fc07cf28417f6e755ad8a105a71aa55ab13c8

    Description

      ApplicationWindow does not behave well with a layout in the content area, with respect to the minimum size. If the window is not given a minimum size, then it can be manually resized smaller than the content. If it is given a minimum size, there is no easy means to account for the sizes of the menu and toolbars. The lack of an ApplicationWindow layout, or size information for the menus, toolbars, and statusbar, makes it difficult to provide reasonable constraints to resizable desktop applications.

      To reproduce: Use the "Basic Layouts" example. Notice how it resizes as appropriate. Now include a MenuBar for the menuBar property of the ApplicationWindow. Now the example can be sized too small, by an amount equal to the size of the menubar. The example has given a minimum size to the ApplicationWindow, but there is no way to determine the height of the menubar to account for it.

      Possible solutions: place the ApplicationWindow components within a layout, so that it now honors the minimum size of its contents; alternatively provide a means to query the sizes of the menubar, toolbars, and statusbar.

      Attachments

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

        Activity

          People

            smd Jan Arve
            brandybuck David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes