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

minimumSizeHint() is not computed until some events are processed in the event loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.0 Beta3
    • None

    Description

      Change the behavior of minimumSizeHint() or point out in the doc that

      minimumSizeHint() is not computed until some events are processed in the event loop, so a better solution is to get minimumSizeHint() is in the slot QTimer.singleShot

      Two posts mentioned the feature 

      https://stackoverflow.com/a/28760211/1485853

      https://forum.qt.io/topic/4500/resize-top-level-window-to-fit-contents/4

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            philip Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes