Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Menu Button - Get rid of down arrow, anchor menu from top right corner

Menu Button - Get rid of down arrow, anchor menu from top right corner

Scheduled Pinned Locked Moved General and Desktop
material designdesktopmenutoolbar
1 Posts 1 Posters 1.0k 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.
  • M Offline
    M Offline
    mchouse
    wrote on 13 Mar 2015, 19:27 last edited by
    #1

    I have a toolbar with a toolbutton that calls a menu.

    Menu {
    id: moreMenu
    MenuItem { text: "Redo"}
    }
    toolBar: ToolBar {
    id: mainToolBar
    RowLayout{
    Item {Layout.fillWidth: true}
    ToolButton { iconSource: "more.svg"; menu: moreMenu }
    }
    }
    }

    Issue #1) In the example above, the "more" icon is the android style three vertical dots. My issue is, while the "more" icon is visible, a black down arrow is overlayed on top of the three dots (I'm in windows, so I'm sure that's the native icon for a menu of this sort). How do I get rid of this black down arrow?

    Issue #2) The "moreMenu" button is aligned on the right side of the toolbar. When the menu opens, the top left corner of the menu is anchored to the bottom left corner of the button. As a result, when the menu opens, most of it appears outside the window frame. I would rather the menu open inwards, i.e. the top right corner of the menu anchor to the bottom right corner of the button. If you are struggling to visualize what I'm talking about, both ie and chrome have settings buttons in the top right corner. When you click on them, the menu drops down and to the left. That's the behavior I'm trying to mimic. My button menu drops down and the right, which is outside the window borders.

    1 Reply Last reply
    0

    1/1

    13 Mar 2015, 19:27

    • Login

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