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

"T QVariant::value () const" description code is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.6.0
    • Documentation
    • None
    • 8b2fdaf81ed4c52a75fe3a160c20f76a4eaf1d2b

    Description

      There is a sample code for "T QVariant::value()" function as follow.

      QVariant v;

      MyCustomStruct c;
      if (v.canConvert<MyCustomStruct>())
      c = v.value<MyCustomStruct>(v);

      The last line above should be "c = v.value<MyCustomStruct>();"

      Attachments

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

        Activity

          People

            jerome.pasion Jerome Pasion
            kimitake Kimitake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes