Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor useryy2's Avatar
    Join Date
    Apr 2011
    Posts
    89
    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?

  2. #2
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    Hi,
    Yes, you do. You need event to sublclass QXmlContentHandler, which is the class that will use it.

  3. #3
    Regular Contributor useryy2's Avatar
    Join Date
    Apr 2011
    Posts
    89
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved