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. (Resolved)Help needed with Android Action bar menu button
Forum Updated to NodeBB v4.3 + New Features

(Resolved)Help needed with Android Action bar menu button

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.8k 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.
  • M Offline
    M Offline
    MyQtAccount
    wrote on last edited by
    #1

    I want to open up a popup when a action bar button is pressed. I've got a QMainWindow with a QMenuBar and the button with three dots appears in the action bar.

    The idea is that I would press that button and trigger something inside the program itself. I don't want to add options directly to the menu bar, just know that the button was pressed. Is there something I can do to determine when that happens.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MyQtAccount
      wrote on last edited by
      #2

      Found it.
      QtActivity.java
      onPrepareOptionsMenu
      That function runs each time the button is pressed.

      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