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] Dynamic Signal/ Slot example ?
Forum Updated to NodeBB v4.3 + New Features

[solved] Dynamic Signal/ Slot example ?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 2.6k 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.
  • D Offline
    D Offline
    deleted28
    wrote on last edited by
    #1

    Is there any minimalistic example for using dynamic signal slots ?

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      What do you mean with dynamic??
      Signals/slots may be connect() or disconnect() in real time, so it's easy and simple. No examples are present I presume.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted28
        wrote on last edited by
        #3

        I want to connect signal to slot at runtime as described
        "here":http://doc.qt.digia.com/qq/qq16-dynamicqobject.html

        what do you mean with "in real time" ?

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          This documentation is very old. What Qt version do you use?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deleted28
            wrote on last edited by
            #5

            4.8

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #6

              Then, take a look to "Signals & Slots":http://qt-project.org/doc/qt-4.8/signalsandslots.html they are already dynamic and you can connect or disconnect them when ever you want.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                deleted28
                wrote on last edited by
                #7

                thank you very much, you saved me wasting a lot of time.

                1 Reply Last reply
                0
                • JeroentjehomeJ Offline
                  JeroentjehomeJ Offline
                  Jeroentjehome
                  wrote on last edited by
                  #8

                  That's what I mend. Real time means: run time / execute time etc etc. So when the program runs you are able to set and disconnect the signal/slots ;-)

                  Greetz, Jeroen

                  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