[Qt-interest] error in moc file

Jeroen De Wachter jeroen.dewachter at barco.com
Thu Mar 18 09:37:49 CET 2010


Stephen Jackson wrote:
> On 18 March 2010 07:07, Ramesh wrote:
>   
>> I have a class inherited from Qwidget and Qlistview and I have mentioned the
>> public slot in my class
>>
>>     
>
> If you mean that you are doing this
>     class SomeClass : public QWidget, public QListView
> then it is not supported. See the section on Multiple Inheritance here
> http://qt.nokia.com/doc/4.6/moc.html
>
> If that's not it, then we need to see your class declaration and error message.
>
>   

Also, why would you event want to inherit from both QWidget and QListView?
QListView is already a QWidget...




More information about the Qt-interest-old mailing list