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. Control of a lot of buttons
Forum Updated to NodeBB v4.3 + New Features

Control of a lot of buttons

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 714 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
    mehmetf
    wrote on last edited by
    #1

    Hello. I'm new in Qt. I have to control approximately 30 buttons. Is there a simple way to do this other than creating 30 seperate buttons and its slot functions? Like using switch-case or using other widget than button?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxim.prishchepa
      wrote on last edited by
      #2

      i think "QSignalMapper":http://qt-project.org/doc/qt-5.0/qtcore/qsignalmapper.html helps you.

      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

      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