By state I meant everything about the widget, all the attributes and properties so that I can compare the (state of) widget before and after touch.
By state I meant everything about the widget, all the attributes and properties so that I can compare the (state of) widget before and after touch.
Each widget holds all kinds of attributes which you can get through the respective methods, such size() for size, geometry() for geometry and so forth.
Where is the problem?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
dpatel (26th November 2010)
I am looking for one function that does the job. I guess I will have to get all the attributes individually.
Thanks.
Use meta data, check:
QObject::metaObject
QMetaObject::property
QMetaProperty
You can fetch list of all properties or just list of properties for given class (QMetaObject::propertyOffset).
Last edited by MarekR22; 25th November 2010 at 13:58. Reason: reformatted to look better
dpatel (26th November 2010)
Bookmarks