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

Popup: Missing transform property

    XMLWordPrintable

Details

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

    Description

      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. 

      Attachments

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes