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. Qt.labs.platform Menu Position Incorrect on HighDPI Displays

Qt.labs.platform Menu Position Incorrect on HighDPI Displays

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 230 Views
  • 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.
  • D Offline
    D Offline
    David Forstenlechner
    wrote on last edited by
    #1

    On Windows scaling settings other than 100% the Menu shows up in the wrong position, apparently wrongly scaled.

    The suspected cause is the QML render window not being a topLevel window, and "QWindow::setTransientParent()" failing, causing a subsequent fail to convert to the proper position depending on that window in the QQuickLabsPlatformMenu implementation:

    m_handle->showPopup(window,
                            QHighDpi::toNativePixels(targetRect, window),
                            menuItem ? menuItem->handle() : nullptr);
    

    Is Qt.labs.platform supposed to work in applications rendering QML in a non-topLevel render window?

    If yes then this is a bug I have not found a workaround for yet - makes it impractical to use on high resolution displays.

    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