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. How to add buttons to Android action bar or implement navigation bar legacy overflow button
Forum Updated to NodeBB v4.3 + New Features

How to add buttons to Android action bar or implement navigation bar legacy overflow button

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    TinRaven
    wrote on 9 Sept 2014, 14:39 last edited by
    #1

    I have a QWidget application that uses the Android menu button via QMenuBar calls. This works fine on devices with a hardware button but I need a solution for devices such as the Nexus 7 with no button.

    Ideally I would like to do things correctly and make use of the action bar and replace the menu with buttons on the bar but I believe that QT does not support this.

    A quick solution would be to add a legacy overflow button to the navigation bar by setting the sdk versions to 10 but when I do this I still get an action bar and the overflow button appears on both the navigation and action bar. Selecting the button on the navigation bar causes the menu to appear next to the action bar. This behavior doesn't seem right and the action bar wastes space.

    Has anyone found a solution to this please? Either being able to add buttons to the action bar or be able to add the legacy overflow button to the navigation bar without having the action bar on screen?

    I am using QT5.3.0 and am mainly targeting devices with Android 4.0+. The project also supports an iOS build.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      s.frings74
      wrote on 10 Sept 2014, 12:00 last edited by
      #2

      I composed my own navigation bar with Widgets instead: http://stefanfrings.de/android_qt/index-en.html

      1 Reply Last reply
      0

      1/2

      9 Sept 2014, 14:39

      • Login

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