Results 1 to 7 of 7

Thread: QObject->inherits() troubles: Keeps returning false

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QObject->inherits() troubles: Keeps returning false

    check if moc is run for those classes
    (the 3 ingredients for the qt magic to work are: derive from QObject, do not forget Q_OBJECT macro, *and* run moc - e.g. by putting the header file inside the .pro file's HEADERS section)

  2. #2
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Re: QObject->inherits() troubles: Keeps returning false

    Quote Originally Posted by caduel View Post
    check if moc is run for those classes
    (the 3 ingredients for the qt magic to work are: derive from QObject, do not forget Q_OBJECT macro, *and* run moc - e.g. by putting the header file inside the .pro file's HEADERS section)
    Thanks. I double checked and moc_* files are created for both Variable and Matrix classes. So it does not seem like this is the problem.

Similar Threads

  1. connect returning false
    By thru in forum Newbie
    Replies: 3
    Last Post: 28th April 2009, 19:58
  2. create a Class inherits from two QObject subclasses
    By sabeesh in forum Qt Programming
    Replies: 17
    Last Post: 31st December 2007, 12:04
  3. QSslSocket : Having troubles
    By Nyphel in forum Newbie
    Replies: 3
    Last Post: 27th June 2007, 14:17
  4. libqjpeg troubles
    By TheRonin in forum Installation and Deployment
    Replies: 6
    Last Post: 25th August 2006, 15:48
  5. lupdate *.pro troubles
    By jeff_s in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2006, 10:07

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.