Results 1 to 2 of 2

Thread: How to set offset of QXmlStreamReader to beginning of the document

  1. #1
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to set offset of QXmlStreamReader to beginning of the document

    dear Friends,
    i need help on how to set offset of QXmlStreamReader to beginning of a document after parsing once.
    Thanks in advance

    Regards
    Askar

  2. #2
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Default Re: How to set offset of QXmlStreamReader to beginning of the document

    just seek QIODevice to needed part and enter in while (!xml.atEnd()) loop, or you can compare elements name and stop parsing when you need.

Similar Threads

  1. Timezone offset
    By pdoria in forum Qt Programming
    Replies: 5
    Last Post: 7th February 2014, 05:54
  2. read file from end to beginning..
    By soul_rebel in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2012, 01:20
  3. Console application beginning
    By Raccoon29 in forum Newbie
    Replies: 6
    Last Post: 23rd March 2012, 23:42
  4. LIMIT and OFFSET for QSqlRelationalTableModel
    By mkarakaplan in forum Newbie
    Replies: 8
    Last Post: 6th November 2007, 00:06
  5. QTableWidget, row offset
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2006, 11:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.