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. QXmlStreamReader | Documentation not very clear...

QXmlStreamReader | Documentation not very clear...

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 896 Views 2 Watching
  • 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.
  • G Offline
    G Offline
    grpace
    wrote on last edited by
    #1

    Seems like it should be straight-forward... But I'm not getting it to work. I'm just trying to retrieve some elements from the xml reader and assign the values to UI labels. According to what I read, this should work:

    ui->labelName->setText(xmlReader.documentVersion.toString());
    

    However, the best that I've been able to get is:

    QXmlStreamReader::documentVersion does not have a class type.
    

    According to the documentation, this class' methods mostly return QStringRef values, and according to the documentation for them, the .toString() function should return a QString type.

    What am I missing ?? Seems to me if this was invalid Qt shouldn't be offering a list of options after the documentVersion.

    Thanks in advance !

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! You forgot the parenthesis: xmlReader.documentVersion().toString().

      1 Reply Last reply
      2
      • G Offline
        G Offline
        grpace
        wrote on last edited by
        #3

        Thank You Wieland !!!
        Ha Ha Ha...
        Those little things will get ya every time !!

        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