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

QMetaObject::invokeMethod not finding method due to QList quint8 vs. uchar incompatibility

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.0
    • Core: Object Model
    • None
    • All

    Description

      The invokeMethod behaviour is different 5.15.10 vs 6.5.0 when using QList. The QList<quint8> is converted to a QList<uchar> when cast to a QVariant. Qt5 sees both types as the same, whereas Qt6 doesn't when trying to locate the method to call.

      I included some rough code (sorry) which shows the issue. It seems the only workaround is to convert all code to use QList<uchar> which requires a large effort in our project. I guess this is a side effect of the changes to QList in Qt6

      Code is attached

      Attachments

        1. main.cpp
          2 kB
        2. main.h
          0.8 kB

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              kevin.peel Kevin Peel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes