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

Qt 6: Connection syntax migration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0 Beta3
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All
    • Story Points:
      21

      Description

      To what extent can the old connection syntax be deprecated?

      Points to consider

      • uic currently generates the old syntax
      • uic calls QMetaObject::connectSlotsByName()

      Potential action points/TBD

      • Port uic to generate Qt 5 syntax. That would require to generate QOverload for any function with parameters, but then QOverload would have to be made agnostic of "const QString &" vs "QString") first.
      • Drop QMetaObject::connectSlotsByName() from uic (option?) or
      • Change QMetaObject::connectSlotsByName() to output warnings and maybe the connections in C++ so that it can be easily added
      • Add a per-form setting to Designer so that connectSlotsByName() can be disabled by form for migration?

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-76375
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              kleint Friedemann Kleint
              PM Owner:
              Maurice Kalinowski Maurice Kalinowski
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: