[Qt-interest] how to know derive class

pengliang(彭亮) pengliang at founder.com
Thu Nov 11 08:45:43 CET 2010


Hi all

See the picture bellow,  

QTableWidget: cellWIdget return a QWidget point, but I don’t know which QWidget is a QLineEdit, which is a QComboBox?

 

Now, snippets: convert QWidget to QLineEdit, if failed, then it’s a QComboBox.

But I think this is not good.

Anyone has good ideas?

 

         

 

 

 

Thanks

彭亮 Ken

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101111/5b66317d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 21726 bytes
Desc: image002.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101111/5b66317d/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 20116 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101111/5b66317d/attachment-0001.jpe 


More information about the Qt-interest-old mailing list