bigbigmoon
27th October 2006, 03:21
hello every,
I hope that A inherit from QListBox and QPopupMenu ,but there 's something wrong with it :
souce code :
class spinxList :public QListBox ,public QPopupMenu
{
Q_OBJECT public :
..........
}
error :
'QObject ' is an ambiguous base of 'spinxList ',
what can i do to solve this problem ?
another problem :
I learn about that QList is a template class ,it 's items can be of any type .
but I could't find the class QList from QT referrence document ,
is there the template class ?
thank you for your reply !
I hope that A inherit from QListBox and QPopupMenu ,but there 's something wrong with it :
souce code :
class spinxList :public QListBox ,public QPopupMenu
{
Q_OBJECT public :
..........
}
error :
'QObject ' is an ambiguous base of 'spinxList ',
what can i do to solve this problem ?
another problem :
I learn about that QList is a template class ,it 's items can be of any type .
but I could't find the class QList from QT referrence document ,
is there the template class ?
thank you for your reply !