Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mistake in QT DOC ?
QtWS25 Last Chance

Mistake in QT DOC ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrtc3
    wrote on last edited by
    #1

    Hello community,

    I stumbled over a mistake I asume: "see here":http://doc.qt.nokia.com/4.7-snapshot/qvector.html#toList

    @
    QVector<double> vect;
    vect << "red" << "green" << "blue" << "black";

    QList<double> list = vect.toList();
    // list: ["red", "green", "blue", "black"]
    @

    I guess that should be QString instead of double ? Might be confusing for newbies...

    I don't know, where to contact the webmasters...

    Cheers Murat

    There are 10 types. Those who understand binary and those who don't .)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Of course it's a mistake. You can

      • file a bug in Jira http://bugreports.qt.nokia.com/
      • fix the issue yourself and submit a merge request
      • ... add a docnote here http://developer.qt.nokia.com/doc/qt-4.7/qvector.html

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        One could even argue that it should be
        @
        QVector<QString> vect;
        vect << "red" << "green" << "blue" << "black";

        QStringList list = vect.toList();
        @

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrtc3
          wrote on last edited by
          #4

          Done:
          https://bugreports.qt.nokia.com/browse/QTBUG-21067

          There are 10 types. Those who understand binary and those who don't .)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved