[Qt-interest] Qt 4.8 bug?
Joshua Grauman
jnfo-c at grauman.com
Wed May 25 07:15:18 CEST 2011
So sorry about the last message, I just realized that the error was
occurring in an unused class that was lying around in my code(I'm only
using Qt, no KDE deps, this was my own class, I just happened to start it
with K, which I'm seeing now was a bad choice!) that I was using to
experiment and learn about different types of inheritance.
I had defined the class as: class KLineEdit : public virtual QLineEdit
to see how the derived class would inherit the base class and 4.8 didn't
like that... Thanks as always!
Josh
> On Tuesday, 24 de May de 2011 16:19:13 Joshua Grauman wrote:
>> moc_ktextedit.cpp:187: error: cannot convert from base 'QObject' to
>> derived type 'KLineEdit' via virtual base 'QLineEdit'
>> make: *** [moc_ktextedit.o] Error 1
>
> This error doesn't make sense. It seems to imply that QLineEdit is a virtual
> base of KLineEdit. But it isn't:
>
> http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKLineEdit.html
>
>
More information about the Qt-interest-old
mailing list