Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88454

QObject: Add option to warn for duplicated connections

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.1
    • Core: Object Model
    • None
    • All

      Add getenv() to QObjectPrivate::connectImpl() to activate logging of duplicated connections like "const bool isLogDuplicatedConnection = qgetenv("CORE_CONN_SHOW_DUPLICATED");".

      The option could force a Qt::UniqueConnection type when not already set, then check as normal for existing connection - but only log a duplicated connection w/o returning - i.e. break out the "while (c2)" and continue w/ creating a new connection.

      Note: Or add a new logging category for this purpose. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            mallers Manfred Allers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes