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

Setting horizontal/verticalCenter anchors break size of anchored item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.7.1
    • None
    • - Qt version 4.8.x from gitorious.org master (built ~end of 2010) / problem visible also with qtsdk-2010.05
      - Linux Ubuntu 10.10

    Description

      Changing anchors based on window orientation (portrait/landscape) breaks size of an Item. (See simple attachment)

      Steps to reproduce:
      1) Load attached qml-file with qmlviewer (you may need to reload the qml to qmlviewer Ctrl+r)
      2) Resize the window to landscape mode (width > height)
      3) Resize the window back portrait mode (width < height)

      Expected outcome:
      1) "Portrait changed: true" on your console.
      Red box is located @ top-left corner
      Top-left corner of blue box @ vertical center of window
      2) "Portrait changed: false" on your console.
      Top-left corner of red box @ horizontal center of window
      Blue box is located @ top-left corner of window
      3) "Portrait changed: true" on your console.
      Red box is located @ top-left corner
      Top-left corner of blue box @ vertical center of window

      Actual outcome:
      1) "Portrait changed: true" on your console.
      Red box on top-left corner
      Top-left corner of blue box @ vertical center of window
      2) "Portrait changed: false" on your console.
      Top-left corner of red box @ horizontal center of window
      Blue box is located @ top-left corner of window
      3) "Portrait changed: true" on your console.
      Blue box's height ~ 100% of window's height (50px width)
      Red box width ~ 100% of window's width (50px height)

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            rainemak Raine Makelainen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes