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

Pointers With Signals and Slots

Scheduled Pinned Locked Moved General and Desktop
signalslotpointerslayout
6 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 14 Mar 2015, 19:56 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

    B 1 Reply Last reply 14 Mar 2015, 19:57
    0
    • S SGaist
      14 Mar 2015, 19:56

      Hi,

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

      B Offline
      B Offline
      Bolt2strike
      wrote on 14 Mar 2015, 19:57 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
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 14 Mar 2015, 19:59 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

        B 2 Replies Last reply 14 Mar 2015, 20:02
        0
        • S SGaist
          14 Mar 2015, 19:59

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

          B Offline
          B Offline
          Bolt2strike
          wrote on 14 Mar 2015, 20:02 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
          • S SGaist
            14 Mar 2015, 19:59

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

            B Offline
            B Offline
            Bolt2strike
            wrote on 14 Mar 2015, 20:11 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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Mar 2015, 20:12 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

              2/6

              14 Mar 2015, 19:57

              topic:navigator.unread, 4
              • Login

              • Login or register to search.
              2 out of 6
              • First post
                2/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved