Results 1 to 2 of 2

Thread: QDomNode

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy QDomNode

    Hi,
    I am using QT4.3. I have no idea about how can i use a QDomNode in my project. When I declare a variable like this
    QDomNode vconfig;

    and try to make the program, then qt display some errors like this.

    ================================================== ====================
    Manager.cpp: undefined reference to `QDomNode::QDomNode()'
    Manager.o(.text+0x4d28):Manager.cpp: undefined reference to `QDomNode::QDomNode()'
    Manager.o(.text+0x4d33):Manager.cpp: undefined reference to `QDomElement::QDomElement()'
    Manager.o(.text+0x4d4f):Manager.cpp: undefined reference to `QDomNode::isNull() const'
    Manager.o(.text+0x4d8f):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'
    Manager.o(.text+0x4d97):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'
    Manager.o(.text+0x4da2):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'
    Manager.o(.text+0x4de6):Manager.cpp: undefined reference to `QDomElement::setAttribute(QString const&, QString const&)'
    Manager.o(.text+0x4e26):Manager.cpp: undefined reference to `QDomElement::setAttribute(QString const&, QString const&)'
    Manager.o(.text+0x4e4e):Manager.cpp: undefined reference to operator=(QDomNode const&)'
    Manager.o(.text+0x4eb8):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'
    Manager.o(.text+0x4ec4):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'
    Manager.o(.text+0x4ed0):Manager.cpp: undefined reference to `QDomNode::~QDomNode()'

    ================================================== ============================================
    How can I solve this problum. Please help me.........

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QDomNode

    Only modules QtCore and QtGui are enabled by default. To link against the QtXml module, add this line to your qmake .pro file:
    QT += xml
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    sabeesh (14th September 2007)

Similar Threads

  1. QDomNode
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 13:18
  2. The difference beteen QDomNode and QDomElement
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 7th January 2006, 04:37

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.