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

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

XMLWordPrintable

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

      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

        1. main.h
          0.8 kB
        2. main.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes