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

Disable connect-by-name

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 2.2k 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.
  • M Offline
    M Offline
    michelson
    wrote on 29 Nov 2015, 13:13 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
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 29 Nov 2015, 14:59 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
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 29 Nov 2015, 16:58 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

        1/3

        29 Nov 2015, 13:13

        • Login

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