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

Dumb down the QWidget::restoreGeometry() logic

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • 6.0
    • None
    • None
    • 5edb71c6d (dev), fe4955c2f (6.5)

    Description

      Perhaps it makes sense to dumb down the restoreGeometry() logic. This function  is full of  undocumented tweaks. It should simply take the saved geometry, screen, and/or window placement in a virtual desktop and call the corresponding APIs to set the stored values, without any sanity checking. That is all. If a user has changed a desktop settings (e.g. screen size, window decoration size) then an application should have an option to not restore from saved settings (or reset to defaults), the API should not try do undocumented magic. A smarter restoreGeometry() version could even store screen serial numbers and return 'false' if things has changed. There are a lot of arbitrary ways to do this, perhaps the best is to have a dumb version and document it as such and inform developers that they can write a smarter/custom version if desired.

      Attachments

        Issue Links

          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
              paeglis Gatis Paeglis
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes