HI
I just want to know is there any method through which u can know that this widget or dialog will expose some property . I have read about Qt Meta object but it is not working .
HI
I just want to know is there any method through which u can know that this widget or dialog will expose some property . I have read about Qt Meta object but it is not working .
Will this work for you?
Qt Code:
To copy to clipboard, switch view to plain text mode
Hi
Thanks, But what i want that by any method i will get the toal No of Property from the widget . In this case what we actually get the value of that property ,I want just name of the Property
So for QWidget if there 30 Property I want a fn which will return that QWidget has 30 property. Also either through indexing or by any means i want to know the property exposed by the QWidget So like Enabled ,Geometry maximumheight etc
Doesn't this work?
Qt Code:
QStringList properties; for(int i = metaObject->propertyOffset(); i < metaObject->propertyCount(); ++i)To copy to clipboard, switch view to plain text mode
Hi
Thanks This works
Bookmarks