Discussion Board
How to use QXmlLocator?
2011-09-27, 10:35
#1
Regular Contributor
http://doc.qt.nokia.com/4.7/qxmllocator.html
For both of "columnNumber()" and "lineNumber()" are pure virtual function. Do I have to implement it myself?
What's the scenario to use it and implement it by myself?
Re: How to use QXmlLocator?
2011-09-27, 16:36
#2
Nokia Developer Moderator
Hi,
Yes, you do. You need event to sublclass QXmlContentHandler, which is the class that will use it.
Re: How to use QXmlLocator?
2011-09-28, 07:23
#3
Regular Contributor
Hi, I know QXmlContentHandler will use it.
My puzzle is in order to create an object of QXmlLocator, I have to implement the lineNumber() and columnNumber(), which I expect to get the two numbers from the library function instead of calculating it by myself.
Last edited by useryy2; 2011-09-28 at 07:28 .
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules