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

[SOLVED] Qt signals

Scheduled Pinned Locked Moved General and Desktop
signal & slotsignalfunctiondefinition
4 Posts 2 Posters 1.7k 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.
  • L Offline
    L Offline
    Lorence
    wrote on last edited by Lorence
    #1

    Hello, im completely new in QT, and still reading about signals and slot

    What is the sense of functions on a signals if you cant define it?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      Signals are, well, signals :)
      They are used to signal to the rest of the application that something happened. It doesn't matter (to you, as Qt user) how it is signaled (i.e. what the implementation looks like). That is implementation detail handled by Qt's meta object compiler (moc).
      What matters and is of interest to you is that you can emit the signal and that others are notified about it (via connected slots).

      1 Reply Last reply
      1
      • L Offline
        L Offline
        Lorence
        wrote on last edited by
        #3

        okay i get it thanks.im nearly at getting the signal and slot mechanism of qt im new here in qt

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It's important not to get distracted by the details. The gist of it is simple. Sorta action-reaction setup.

          One object emits a parametrized signal and any number of connected objects get a slot invoked with the signal parameter passed.

          1 Reply Last reply
          1

          • Login

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