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. QML Menu right-to-left bug
QtWS25 Last Chance

QML Menu right-to-left bug

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 203 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.
  • I Offline
    I Offline
    Imynn
    wrote on last edited by Imynn
    #1

    Hello Everyone! I've encountered an issue, when I try to use Menu from QtQuick.Controls 1.4 and if my application is QApplication that has right-to-left layout. When I try to open a menu it popups in a right place but then moves on its width to the left side. This problem doesn't happen with QGuiApplication. Anyone else encountered this issue? Are there any solutions for this? I'm using Qt 5.12.12. The same issue appears on Qt 5.15.2 as well.
    Simple example:

    import QtQuick 2.9
    import QtQuick.Window 2.3
    import QtQuick.Controls 1.4
    Window {
        id: root
        width: 640
        height: 480
        visible: true
    
        Menu {
            id: menu
            MenuItem {
                text: "Hello"
            }
        }
    
        MouseArea {
            anchors.fill: parent
            onClicked: {
                menu.popup()
            }
        }
    }
    
    
    

    Thank you for help in advance

    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