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

Flags are not serialized correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.3
    • Remote Objects
    • 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

            bstottle Brett Stottlemyer
            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