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

Popup: Missing transform property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.8, 5.15.0
    • Quick: Controls 2
    • None
    • All

      It is weird that there's a transformOrigin property for QtQuick.Controls2 Popup but without providing the transform property (the rotation property is missing too, comparing to Item).

      That makes it inconvenient (and may be impossible) to apply complex transformations to Popups because we only have the scale property for Popups currently.

      As a workaround we could hack into the QQuickPopupItem::transform:

      Popup {
      
          Scale { id: popupScale }
      
          Component.onCompleted: background.parent.transform = popupScale
      }
      

      However I think depending directly on the implementation details is usually not a good idea. 

        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
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes