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. Creator button grouping
Qt 6.11 is out! See what's new in the release blog

Creator button grouping

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    Sagebrushwilly
    wrote on last edited by
    #1

    I am trying to develop an app in Qt Creator right now and I am having trouble with a signal. I have a Dial that I want to control a group of push buttons. Basically the idea would be as the dial turns, it selects the appropriate button, but I am having trouble setting up the signal and slot to do this. I'm not sure how to group these buttons, and possibly it is because I am doing this through the GUI in Creator and not by had coding it. Any ideas?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      There's no need to write everything by hand, however the slot implementation (i.e. selection of the button in your case), you'll have to write yourself.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sagebrushwilly
        wrote on last edited by
        #3

        So I am assuming that I need to declare what I want in the header file and implement the connection in the mainwindow.cpp file? My C++ is rusty but it looks like I write it like a normal class, and instantiate it in the .cpp

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should then take a look at the Creator Using Qt Designer doc to get on the right track.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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