Results 1 to 7 of 7

Thread: Moc generates uncompilable code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Moc generates uncompilable code

    class Particle is not derived from QObject.

  2. #2
    Join Date
    Jan 2007
    Posts
    45
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Moc generates uncompilable code

    Quote Originally Posted by ChristianEhrlicher View Post
    class Particle is not derived from QObject.
    No, I's derived from QObject.

  3. #3
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Moc generates uncompilable code

    Quote Originally Posted by Vladimir View Post
    No, I's derived from QObject.
    Where?

    Qt Code:
    1. namespace Core {
    2. class Particle {
    3. Q_OBJECT
    4. Q_PROPERTY(Core::Vector position READ position WRITE setPosition)
    5. public:
    6. ....
    7. };
    8. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  2. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.