Results 1 to 7 of 7

Thread: QObject Internals Doc

  1. #1
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question QObject Internals Doc

    Hi,

    Do you have any link that explains the Implementation details of the QObject, Q_OBJEC, Q_PROPERTY Macro.
    We can't solve problems by using the same kind of thinking we used when we created them

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QObject Internals Doc

    a life without programming is like an empty bottle

  3. #3
    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: QObject Internals Doc

    What do you mean with "implementation details"? Just read the sources if the documentation is not enough..
    J-P Nurmi

  4. #4
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QObject Internals Doc

    Quote Originally Posted by zlatko
    Thank u for the link i never knew something of that sort exist

    But nothing is said about how the Q_OBJECT is implemented. No info about the moc ing the QObject Subclasses is Provided that explain about qt_invoke or the implementation of the functions declared ....

    I was asking if anyone has any doc that helps me understand the internals better.
    We can't solve problems by using the same kind of thinking we used when we created them

  5. #5
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QObject Internals Doc

    Are you sure that oficial documentation is poor
    Moc system
    Also available good book Blanchet "Gui programing with Qt3", search in web for it
    a life without programming is like an empty bottle

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QObject Internals Doc

    Quote Originally Posted by sunil.thaha
    But nothing is said about how the Q_OBJECT is implemented.
    Qt Code:
    1. #define Q_OBJECT \
    2. public: \
    3. static const QMetaObject staticMetaObject; \
    4. virtual const QMetaObject *metaObject() const; \
    5. virtual void *qt_metacast(const char *); \
    6. QT_TR_FUNCTIONS \
    7. virtual int qt_metacall(QMetaObject::Call, int, void **); \
    8. private:
    To copy to clipboard, switch view to plain text mode 

    No info about the moc ing the QObject Subclasses is Provided that explain about qt_invoke or the implementation of the functions declared ....
    I was asking if anyone has any doc that helps me understand the internals better.
    http://doc.trolltech.com/qq/qq16-dynamicqobject.html

  7. The following user says thank you to wysota for this useful post:

    sunil.thaha (2nd June 2006)

  8. #7
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QObject Internals Doc

    Quote Originally Posted by zlatko
    Are you sure that oficial documentation is poor
    Moc system
    No the doc is one of the best written manual on a Beautiful tool ever made. But it emphasises more on the usage rather than the design of the tool. Hope you get me .

    Anyway Thanks for the tip!

    The link by Wysota is what i had wanted to begin with the exploration of Qt's Internals. That gets into the implementation of the functions declared by Q_OBJECT.

    Thanks all
    Last edited by sunil.thaha; 2nd June 2006 at 13:16.
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. From QObject to QWidget
    By Maxilys in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2014, 17:07
  2. Pointers and Q_PROPERTY
    By andersin in forum Qt Programming
    Replies: 3
    Last Post: 1st March 2006, 14:05
  3. Basic question on new and delete
    By jcr in forum General Programming
    Replies: 25
    Last Post: 14th February 2006, 15:09
  4. subclassing/inheritance QObject problem
    By cbeall1 in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 17:49

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.