Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-208

QtSingleApplication: Build failed with Qt6.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • Release 6
    • Single Application
    • None
    • All

      The build failed when the macro was set:

      QT_DISABLE_DEPRECATED_UP_TO=0x060000 

      Because on line 49 of the file 'qt-solutions/qtsingleapplication/src/qtlocalpeer.cpp', a deprecated API in Qt6 was called:

       quint16 idNum = qChecksum(idc.constData(), idc.size());
      

      The API has changed in Qt6 to:

      quint16 qChecksum(QByteArrayView data, Qt::ChecksumType standard = Qt::ChecksumIso3309)
      

      Therefore, I think that a check for the Qt version number should be added here so that different APIs can be called depending on the version.

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

            Unassigned Unassigned
            paul-xu Paul Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes