[Qt-interest] Problem with all the widgets in QT... every widget showing error

Andreas Pakulat apaku at gmx.de
Sun Jan 11 16:16:52 CET 2009


On 11.01.09 13:22:06, Neeraj Jhawar wrote:
> Hie All,
> 
> I was working with a program.. I tried running it..(after checking it
> meticulously for errors myself). but now it shows errors...
> 
> Whats bizzare is it is showing some error with each and every widget
> placed in the program.
> I am guessing it to be a problem with linking the header file which
> contains the declaration with the .cpp file which contains the
> definition and all the call to those in various layout.
> Another thing which is bad is it shows errors with layouts as well...
> 
> I am posting the error with one of the widget... Please help me find a solution
> 
> *******************************************************************************************
> /usr/local/qt/include/qlabel.h:163: candidates are: QLabel::QLabel(const
>    QLabel&)
> /usr/local/qt/include/qlabel.h:66:                 QLabel::QLabel(QWidget*,
>    const QString&, QWidget*, const char* = 0, unsigned int = 0)
> /usr/local/qt/include/qlabel.h:64:                 QLabel::QLabel(const
>    QString&, QWidget*, const char* = 0, unsigned int = 0)
> /usr/local/qt/include/qlabel.h:62:                 QLabel::QLabel(QWidget*,
>    const char* = 0, unsigned int = 0)
> controllerqt.cpp:165: no matching function for call to `QLabel::QLabel(QString)

This code has been written to work with Qt4 and you're trying to compile it
with Qt3. So you better revert the last changes you did.

Andreas

-- 
An avocado-tone refrigerator would look good on your resume.



More information about the Qt-interest-old mailing list