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. Disable connect-by-name

Disable connect-by-name

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 2.2k 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.
  • M Offline
    M Offline
    michelson
    wrote on last edited by
    #1

    Can one disable connect-by-name signal-slot function? I would like to set everything by myself i.e. to avoid double connections messing up everything.

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

      What do you mean by connect-by-name? And what do you mean by "disable"? There's no notion of disabling functions in c++;

      If you want to avoid doubled connections you can pass Qt::UniqueConnection as the last param of connect.

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        Hi
        Do you mean the auto connect from Designer UI files?
        Sò buttons work with no connect code?
        It is based on the slots look like this
        void on_widget name_signalname

        so if you rename it to not follow this pattern, it won't be auto connected.

        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