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

Qt 6: Connection syntax migration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.13.0 Beta3
    • None
    • All
    • 21
    • PM Pending Features

      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?

        1. qtbug76375_uic.zip
          2 kB
          Friedemann Kleint
        2. 0001-WIP-Add-QRelaxedOverload.patch
          13 kB
          Friedemann Kleint
        3. normalizetester.zip
          1 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-76375
        # Subject Branch Project Status CR V

            kleint Friedemann Kleint
            kleint Friedemann Kleint
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: