Results 1 to 5 of 5

Thread: enlighten me on the use of Q_PROPERTY!!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: enlighten me on the use of Q_PROPERTY!!

    Quote Originally Posted by jacek
    Actually you will still need to write such methods. Q_PROPERTY just informs Qt about them.
    how does this help? i mean how is it different from declaring a private attribute and corresponding methods..Any advantage?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: enlighten me on the use of Q_PROPERTY!!

    Quote Originally Posted by nupul
    Any advantage?
    Look at the Qt Designer --- it doesn't know anything about custom widgets, yet if you create a custom widget plugin, you will be able to change that widgets' properties. How would you implement this without Q_PROPERTY?

  3. The following user says thank you to jacek for this useful post:

    nupul (3rd April 2006)

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.