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