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

Dumb down the QWidget::restoreGeometry() logic

XMLWordPrintable

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

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            paeglis Gatis Paeglis
            Votes:
            3 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes