Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to properly scale a QuickControls2 Popup
Forum Updated to NodeBB v4.3 + New Features

How to properly scale a QuickControls2 Popup

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 326 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BillyTex
    wrote on last edited by
    #1

    Hi There!

    I have troubles resizing/scaling the QML QuickControls2 Popup item. The specification shown here: https://doc.qt.io/qt-5.10/qml-qtquick-controls2-popup.html shows the scale property, but this does nothing to the popup. Only when setting this property for the subitems background and ContentItem, the Popup looks to scale properly.

    However, the actual non-visible width and height of the Popup itself have not changed, causing the clickable area being (in the case of scaling down), greater than the visible Popup. This has the effect that if you want to close the popup by clicking outside the Popup its doesn't work, until you are outside the not visible part of the actual Popup dimensions.

    Alternatively I can use Transform { Scale }} for the background and ContentItem, but this results in the same behavior.

    Scaling works fine for any other item (e.g. a QTQuickControls2 Page) but not for the Popup. I hope teh above is clear and I hope someone can help me out!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved