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

QSettings::value() does not fetch correct value on Mac

    XMLWordPrintable

Details

    • macOS
    • 8
    • Foundation PM Staging

    Description

      QSettings is storing QKeySequence and when same is fetched using QSettings::value() on mac does not gives correct value. Same works good on windows.
      Following code snippet prints QVariant(QString, "↘")

      test.setValue("key", QKeySequence(Qt::Key_End));
        qDebug() << test.value("key");
      

      Following code returns true at least with Qt5.15.2,

      test.setValue("key", QKeySequence(Qt::Key_End));
      if(test.value("key")==QKeySequence(Qt::Key_End))
         qDebug()<< "found it ";
      

      but if simply printed with qDebug() this also prints similar character as Qt6.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            irfan.omair@digia.com Irfan Omair
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes