Disable connect-by-name

  • 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.

  • Moderators

    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.

  • Qt Champions 2017

    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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.