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. [SOLVED]is it best to create 1 QAction, and then add it to toolbar, menu, popmenu ?
QtWS25 Last Chance

[SOLVED]is it best to create 1 QAction, and then add it to toolbar, menu, popmenu ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 400 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by opengpu2
    #1

    is it best to create 1 QAction, and then add it to toolbar, menu, popmenu ?
    or create QPushButton for toolbar, qaction for menu, then connect them to the same slot?

    M 1 Reply Last reply
    0
    • O opengpu2

      is it best to create 1 QAction, and then add it to toolbar, menu, popmenu ?
      or create QPushButton for toolbar, qaction for menu, then connect them to the same slot?

      M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      @opengpu2 said:

      is it best to create 1 QAction, and then add it to toolbar, menu, popmenu ?

      This is what QAction is designed for; so my answer is YES

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      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