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. Submenu animations?
Forum Updated to NodeBB v4.3 + New Features

Submenu animations?

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

    I'm going to implement an experimental context menu navigation scheme, where the submenu moves towards the cursor, so that the navigation is faster, instead of having to move the cursor all the way to the side of the menu item (submenu heading in this case) to select a menu item in the submenu.

    Question: Would I need to roll out my own menus for this?

    I can't seem to be able to move a submenu in any way, with relation to the parent menu. NumberAnimation on x does not work. Also "overlap" property change does not do anything when the submenu is open and on the screen. Also it does not seem that anchoring is used, leftMargin could otherwise be animated, or so on.

        Menu {
            id: fileMenu
            title: qsTr("File")
    
            Menu {
                id: fileActionsSubMenu
                title: qsTr("File Actions")
    
                NumberAnimation on x { to: -50; duration: 500 } //Does nothing
    
                MenuItem {
                    text: "New..."
                }
                MenuItem {
                    text: "Open..."
                }
                MenuItem {
                    text: "Save"
                }
            }
        }
    
    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