[Qt-interest] how I can know the widget is editable?
Arnold Krille
arnold at arnoldarts.de
Fri Mar 20 17:12:25 CET 2009
On Friday 20 March 2009 16:24:31 Shabd Swarup V wrote:
> Using metaObject className() would return the actual implemented class
> name and not the Qt base class name. I think this will not be suitable
> in your case.
From the Qt-docs of QMetaObject:
const char * QMetaObject::className () const
Returns the class name.
See also superClass(). < -!-
So going through className() and superClass() recursively gives you what is
needed...
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090320/33c6f9ed/attachment.bin
More information about the Qt-interest-old
mailing list