Uffhhh....
Liebe Stefan.
Stefan, I think I should try subclassing a QLabel from
QDataTable.
But I don't know how I should do that.
Could you give me a very example for subclassing
QLabel into QDataTable so I can do drawing an image
file in the QDataTable.
I can not understand the example code from
doc.trolltech.com . It's too complicated for me.
Thank you very much in advance,
--- Stefan Hundhammer
On Monday 27 September 2004 15:29, Prabu Subroto wrote:
In file included from .ui/funonseqform.cpp:37: /usr/lib/qt3/include/qdatatable.h: In member function `virtual void funonseqForm::retsejarahSlot()': /usr/lib/qt3/include/qdatatable.h:212: error: `virtual void QDataTable::setPixmap(int, int, const QPixmap&)' is protected
The compiler unfortunately is right (of course, it always is, wiseass that it is... ;-) ): QDataTable::setPixmap() is a protected member function. I consider that a design flaw of that class: QDataTable::setText() is public, QDataTable::setPixmap() is not. The Qt doc seems to be wrong this time. :-(
Workaround:
You can either subclass your class from QDataTable or, if this is not an option, subclass QDataTable to another class that as a public setPixmap() method that simply calls QDataTable::setPixmap().
CU -- Stefan Hundhammer
Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany -- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail