Results 1 to 5 of 5

Thread: What property of Qwidget can I use to internal purposes ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default What property of Qwidget can I use to internal purposes ?

    I'd need a property only for my internal purposes.
    That is to say, a property which not interfere with any other proccess.
    I remember the 'tag' property for VisualBasic6.
    Is there any similar at QT ?
    Thanks

  2. #2
    Join Date
    Aug 2011
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What property of Qwidget can I use to internal purposes ?

    Maybe its an overkill for what you need, but without knowing more I would probably suggest to subclass QWidget and create your own properties in your class, while keeping all QWidget functionality?

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What property of Qwidget can I use to internal purposes ?

    yes, subclass is not desirable. I only need a qt independent property.

  4. #4
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What property of Qwidget can I use to internal purposes ?

    Hi,

    You can use the QObject::setProperty, using the QT dynamic properties... It's also accessible from Designer, in the "+" button at top of properties list...

    Hth.

  5. The following user says thank you to NullPointer for this useful post:

    tonnot (24th August 2011)

  6. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What property of Qwidget can I use to internal purposes ?

    Yes !!
    Thanks .

Similar Threads

  1. Replies: 1
    Last Post: 17th January 2011, 13:08
  2. Layout with internal frames
    By Wasabi in forum Newbie
    Replies: 4
    Last Post: 10th November 2010, 13:20
  3. [Mac] How to include the Qt internal API on Mac?
    By lovehouye in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2010, 02:16
  4. Replies: 2
    Last Post: 27th May 2010, 01:55
  5. QHttp (internal bug?)
    By fear in forum Qt Programming
    Replies: 12
    Last Post: 16th March 2007, 07:18

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.