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

Flags are not serialized correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Remote Objects
    • Labels:
      None

      Description

      When connecting a replica to a source, all properties get serialized in the "initialize" IPC package.

      This is done by using the serializeProperty function. This contains the following code:

      if (property.isEnumType()) {
              ds << QVariant::fromValue<qint32>(value.toInt());
              return;
      }
      

      This works fine for enums, but it doesn't for a QFlag, as this always returns 0.

      This is only a problem for the initialization as during a update of the property a InvokePacket is send as well and for this the QVariant::serialize() function is used instead which transfers the correct value.

        Attachments

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

          Activity

            People

            Assignee:
            bstottle Brett Stottlemyer
            Reporter:
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes