Results 1 to 8 of 8

Thread: How to get a pointer to a QObject's property ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Apr 2010
    Posts
    24
    Thanks
    5
    Qt products
    Qt4

    Default Re: How to get a pointer to a QObject's property ?

    Quote Originally Posted by hobbyist View Post
    Did you check the source? See QObject:roperty() and QMetaProperty::read() for the dirty details.
    Ya I do have seen back to QMetaProperty, but thers's no way to help me to get the member's address unless you modify the moc file. ( seems like anti-oop, hur? )
    I can enumerate the children list of one QObject object, but first I must set each member's parent, and second there's no one child pointer if the member's type is int, or QString, bool, etc. so I gave up this way.
    Another suggestion?
    Last edited by HiJack; 28th August 2010 at 06:54.

Similar Threads

  1. C++ readonly property
    By yyiu002 in forum Newbie
    Replies: 16
    Last Post: 22nd June 2010, 10:26
  2. How to retrieve the device property?
    By vjsharma_30 in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2010, 18:24
  3. Replies: 1
    Last Post: 31st October 2007, 14:14
  4. enum property
    By illuzioner in forum Qt Tools
    Replies: 10
    Last Post: 22nd August 2006, 21:47
  5. AlignCenter property of the QTableView???
    By manhds in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2006, 09:35

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.