Results 1 to 3 of 3

Thread: elastic nodes example

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default elastic nodes example

    Hello forum,

    I believe most of you have gone through the elastic node example. I trying to make some changes to the existing by including the signal and slot to serve my customized purpose.
    Among the additional stuff i have subclassed the Node class from the QObject and included the Q_OBJECT macro. But i get the linker error as follows:


    Qt Code:
    1. /media/chole_/QtDemo/examples/graphicsview/elasticnodes/node.cpp:19: error: undefined reference to `vtable for Node'
    To copy to clipboard, switch view to plain text mode 


    Any hint to resolve the issue?


    Regards
    Sajjad

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,391
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: elastic nodes example

    Try to run qmake and build the project again, this is often caused by missing moc code for QObject-based class.

  3. #3
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: elastic nodes example

    Quote Originally Posted by stampede View Post
    Try to run qmake and build the project again, this is often caused by missing moc code for QObject-based class.
    Thanks , it works now!

Similar Threads

  1. XML: accessing deep nodes
    By mentalmushroom in forum Qt Programming
    Replies: 7
    Last Post: 9th June 2011, 06:56
  2. childNodes return unexpected nodes
    By julida in forum Qt Programming
    Replies: 1
    Last Post: 7th June 2011, 07:32
  3. elastic QGraphicsItem (layout problem)
    By petar in forum Newbie
    Replies: 9
    Last Post: 11th November 2009, 17:12
  4. QDomDocument - closed nodes?
    By naresh in forum Qt Programming
    Replies: 2
    Last Post: 19th April 2006, 08:10
  5. [QT4] QTreeView and expandable nodes
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2006, 16:52

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.