Results 1 to 5 of 5

Thread: undefined reference to vtable error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: undefined reference to vtable error

    Q_OBJECT macro is correctly supported only in header files. You must create h file with definition of class A and cpp file with its implementation.

  2. The following user says thank you to Lesiok for this useful post:

    PaulDaviesC (20th April 2012)

Similar Threads

  1. Undefined reference to vtable.
    By hakermania in forum Newbie
    Replies: 3
    Last Post: 10th September 2011, 18:10
  2. [SOLVED] Qt: Signals and slots Error: undefined reference to `vtable for
    By TheIndependentAquarius in forum Qt Programming
    Replies: 4
    Last Post: 2nd May 2011, 10:51
  3. Replies: 5
    Last Post: 7th November 2007, 14:46
  4. Error : undefined reference to `vtable for MyClass'
    By joseph in forum Qt Programming
    Replies: 23
    Last Post: 15th June 2007, 11:21
  5. Replies: 5
    Last Post: 14th February 2006, 23:43

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.