[Solved] How do I create a subclass of QLabel through the Qt Creator C++ Wizard?
-
Update: had an install issue which was causing the "symbol(s) not found" error.
Environment: Qt 5.1 Qt Creator 2.8 OSX 1.7.5
How do I create a subclass of QLabel through the Qt Creator C++ Wizard?
Specifically, what is the
base class
andtype information
? I have tried it about three different ways and end up with various compile errors (below). Qt has been working fine so doesn't seem like an install issue so it must be a...user issue.I'm new to Qt, coming from XCode/iOS dev but I'd swear I have done this before in Qt Creator.
(this is the C++ Wizard w/ the settings I am unsure about)
!http://i.stack.imgur.com/Gc1N3.png()!
If I set the type information to
QWidget
orNone
I get the error_symbol(s) not found for architecture x86_64_
If I set the type information to
QObject
I get the error:_invalid conversion from 'QObject*' to 'QWidget*'_
-
base class
==> QLabel`type information ==> QWidget
--
BTW, any thing can be selected in the Wizard, as all of them can be changed after the wizard in the source code.