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. Q_SLOTS, Q_SIGNALS or slots, signals ?

Q_SLOTS, Q_SIGNALS or slots, signals ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 4.1k 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.
  • O Offline
    O Offline
    opengpu
    wrote on last edited by
    #1

    Q_SLOTS, Q_SIGNALS or slots, signals ?
    what should i write in my app?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on last edited by Dariusz
      #2

      I went with Q_SLOTS/Q_SIGNALS as I had conflicts with other libraries when using signals/slots... so I would suggest going with Q_SIGNALS...

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        These macros are synonyms (no functional differences), so it's purely up to your taste. If you get conflicts like @Dariusz you have to go with Q_*. In other cases - I'd argue that signals looks much better than Q_SIGNALS - but as said, it does not matter which you choose.

        (Z(:^

        1 Reply Last reply
        4
        • BuckwheatB Offline
          BuckwheatB Offline
          Buckwheat
          wrote on last edited by
          #4

          @sierdzio said in Q_SLOTS, Q_SIGNALS or slots, signals ?:

          ave to go wi

          @Dariusz

          I just always use Q_SLOTS/Q_SIGNALS and Q_EMIT. This is easy to see in code and easy to search for in an IDE. I find after all my years I am about the future development and others being able to quickly glean information from looking at the code as to what is compiler and what is extra-ordinary.

          Dave Fileccia

          1 Reply Last reply
          2

          • Login

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