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. Pointers With Signals and Slots
QtWS25 Last Chance

Pointers With Signals and Slots

Scheduled Pinned Locked Moved General and Desktop
signalslotpointerslayout
6 Posts 2 Posters 1.8k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #1

    Hi,

    What precisely doesn't work ? Got any error message ?

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

    Bolt2strikeB 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      What precisely doesn't work ? Got any error message ?

      Bolt2strikeB Offline
      Bolt2strikeB Offline
      Bolt2strike
      wrote on last edited by
      #2

      @SGaist No errors, only that the buttons do not do anything... In the function ConfirmPress I put some text into console with "qDebug() <<" this way I know nothing results from pressing a button.

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

        Might be a silly question but what is the signature of ConfirmPress ?

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

        Bolt2strikeB 2 Replies Last reply
        0
        • SGaistS SGaist

          Might be a silly question but what is the signature of ConfirmPress ?

          Bolt2strikeB Offline
          Bolt2strikeB Offline
          Bolt2strike
          wrote on last edited by
          #4

          @SGaist Sorry, not very familiar with the term. But, from a quick Google search this is what you want?

              void ConfirmPress();
          

          That's how it is right now, but this may change as there is little content in the function, I've just been trying to get the buttons working... I still need a way to distinguish which button was pressed as well...

          1 Reply Last reply
          0
          • SGaistS SGaist

            Might be a silly question but what is the signature of ConfirmPress ?

            Bolt2strikeB Offline
            Bolt2strikeB Offline
            Bolt2strike
            wrote on last edited by
            #5

            @SGaist My bad... This is working, at a later point in my code i set the buttons to be disabled, sorry for wasting your time.

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

              Yes that was it. You slot looks good.

              For that second task you can use QSignalMapper)

              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