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 ?
Forum Updated to NodeBB v4.3 + New Features

[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 402 Views 2 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.
  • O Offline
    O Offline
    opengpu2
    wrote on 28 Apr 2015, 09:43 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 28 Apr 2015, 12:20
    0
    • O opengpu2
      28 Apr 2015, 09:43

      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 28 Apr 2015, 12:20 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

      1/2

      28 Apr 2015, 09:43

      • 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