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

Documentation Error on Data Type Conversion page

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes