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

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

    XMLWordPrintable

Details

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

    Description

      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

       

      Attachments

        1. main_bug.qml
          0.7 kB
        2. main_workaround.qml
          0.9 kB

        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
              derm Michael
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes