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

QtQuick.Controls 2 Dialog with content gets wrongly positioned when applying enter-Transition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.1
    • Quick: Controls 2
    • None
    • Windows 10, Qt 5.10.1

      A Dialog, on which the position in animated in the enter-Transition shows misbehaving positioning, with the wrong content, e.g. a simple Button.

      See the two attached files.

      The difference is, that in the workaround, the button to close the dialog is wrapped in an Item that fills the Dialog. If this Item is removed and only the Button remains, the Dialog won't be positioned at 150/150, as the enter-Transition dictates. Instead it will flicker and appear at 0/0.

      See also: https://stackoverflow.com/questions/49997002/how-can-i-animate-a-dialog-to-enter-from-outside-the-screen

       

        1. main_workaround.qml
          0.9 kB
          Michael
        2. main_bug.qml
          0.7 kB
          Michael
        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
            derm Michael
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes