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. Global connection management?
Qt 6.11 is out! See what's new in the release blog

Global connection management?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 382 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.
  • S Offline
    S Offline
    StudyQt1
    wrote on last edited by StudyQt1
    #1

    Hi, every one, here's a simple question....Is there a generic way to manage the whole application's connections to prevent duplicated connections? Sometimes I use lambda so maybe uniqueConnection is not the best option

    I am using Qt 5.15, thank you in advance

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

      Hi,

      The only answer is: write correct code and test it.

      If you need unique connections everywhere as a convenience it usually means that you know you are writing code that should be resistant to that.

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

      S 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        The only answer is: write correct code and test it.

        If you need unique connections everywhere as a convenience it usually means that you know you are writing code that should be resistant to that.

        S Offline
        S Offline
        StudyQt1
        wrote on last edited by
        #3

        @SGaist And how about disconnect before connect? Thank you very much

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

          That depends on your application implementation.

          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