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

Documentation Error on Data Type Conversion page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.4.0 RC
    • 5.3.2
    • Documentation
    • None
    • Windows 7 Ultimate using the MinGw toolchain.

      Data Type Conversion Between QML and C++

      The above linked documentation page has a section on QVariantList support. The example has this code

      QVariantList list;
      list << 10 << Qt::green << "bottles";
      

      Trying to put Qt::green into a QVariantList generates a list of errors shown in the attached image.

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

            ablasche Alex Blasche
            rolias Tod Gentille
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes