Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Tablet Menus
Qt 6.11 is out! See what's new in the release blog

Tablet Menus

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 781 Views 1 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.
  • C Offline
    C Offline
    carlinski
    wrote on last edited by
    #1

    Tried an app I have made using Qt5.3.

    Run it on a Samsung Tab 3 and when I press the menu button (on the bezel) a nice native menu appears with all my menus on.

    On a Samsung Tab 2 no menu is available. On a Nexus 10 again no menu is available.

    I can get a menu to appear by calling

    @
    this->menuBar()->showNormal();
    @

    but it is just a standard windows style menu across the top of the app.

    So my question is, what does the Tab 3 do to get the native menu up? Am I missing a special call?

    These are all built using API 19 BTW.

    Thanks,

    Carl

    1 Reply Last reply
    0
    • C Offline
      C Offline
      carlinski
      wrote on last edited by
      #2

      Something else that could be a clue.

      I currently add the menus through code. If I add them via the creator then a native menu does appear.

      Here is an example of what I do:

      @
      QMenu* menuFile = menuBar()->addMenu("&File");
      menuFile->addAction(actionMenuFileExit);
      @

      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