Results 1 to 2 of 2

Thread: removing qojbect property?

  1. #1
    Join Date
    Jul 2010
    Posts
    63
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default removing qojbect property?

    i have a property (a dynamic one) in my qojbect that i want gone, how do i do that?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: removing qojbect property?

    this should work
    Qt Code:
    1. setProperty("propertryName", QVariant());
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. looking for SortRole property example
    By umen in forum Qt Programming
    Replies: 0
    Last Post: 4th July 2011, 13:11
  2. Virtual property ?
    By gorsanmo in forum Newbie
    Replies: 2
    Last Post: 10th May 2011, 07:23
  3. get property from qss in runtime
    By steep8 in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2011, 23:29
  4. Help with property browser
    By Jsvc in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2010, 01:49
  5. C++ readonly property
    By yyiu002 in forum Newbie
    Replies: 16
    Last Post: 22nd June 2010, 10:26

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.