[Qt-interest] Adding custom widget plugins error/problem

Andreas Pakulat apaku at gmx.de
Tue Mar 10 21:04:20 CET 2009


On 10.03.09 13:12:44, miroslav wrote:
> Hi,
> 
> the custom widget constructor is specified here:
> 
> WorldTimeClockPlugin::WorldTimeClockPlugin(QObject *parent)
> : QObject(parent)
> {
> initialized = false;
> }

And how is the class declared? i.e. whats in the header.

> Please, where should I initialize the constructor? I'm designing
> (importing custom widgets) via designer in QtCreator. That is making
> ui_*.h file - that I can not modify. 

I have 0 idea how things work in QtCreator, but the linker tells you
that your custom widget declares but doesn't implement a constructor
that takes a QWidget. If you don't understand what that means you should
check back on constructors and declaration vs. definition in your C++
book/tutorial. I don't mean to be harsh, but maybe you should first try
to do things outside of QtCreator to understand how compiling, linking
and executing works/works together and then use QtCreator to hide the
details from you.

Andreas

-- 
You will be surprised by a loud noise.



More information about the Qt-interest-old mailing list