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

QVariant cannot convert from QList<QString> to QStringList

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.1
    • Core: Other
    • None

    Description

      Since it following code works fine:

      QStringList list = QList<QString>{"test1", "test2", "test3"};
      

      this should also work, but doesn't

      QVariant::fromValue(QList<QString>{"test1", "test2", "test3"}).canConvert<QStringList>()); //returns false
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            richardo Richard Öhlinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes