Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2007
Compile CalculatorForm Error in qt 4.3 running on fedora 7


Message 1 in thread

I am trying to compile the calculatorform example in qt 4.3 running on 
fedora 7

http://doc.trolltech.com/4.3/designer-calculatorform-calculatorform-cpp.html

and I am receiving this error, anyone can help me ?

[itamar@localhost calculatorform]$ make
/usr/lib/qt4/bin/uic calculatorform.ui -o ui_calculatorform.h
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 
 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -W -D_REENTRANT 
 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. 
 -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui 
 -I/usr/include -I. -I. -I. -o calculatorform.o calculatorform.cpp
calculatorform.cpp: In constructor 'CalculatorForm::CalculatorForm(QWidget*)':
calculatorform.cpp:31: error: no matching function for call to 
'Ui::CalculatorForm::setupUi(CalculatorForm* const)'
ui_calculatorform.h:33: note: candidates are: void 
Ui_CalculatorForm::setupUi(QMainWindow*)
make: *** [calculatorform.o] Error 1
[itamar@localhost calculatorform]$




-- 
 [ signature omitted ] 

Message 2 in thread

Hi,

> I am trying to compile the calculatorform example in qt 4.3 running on
> fedora 7
> 
> http://doc.trolltech.com/4.3/designer-calculatorform-calculatorform-cpp.html
> 
> and I am receiving this error, anyone can help me ?

The examples should have been built automatically when building Qt from 
sources. Have you built Qt from sources?

--
 [ signature omitted ] 

Message 3 in thread

thanks for message I have found a solution

when creating the ui using qt4 designer we need to select widget  instead 
MainWindow



--------------------

Itamar Reis Peixoto

e-mail: itamar@xxxxxxxxxxxxxxxx
msn: itamarjp@xxxxxxxxxxxxx
skype: itamarjp
icq: 81053601
+55 34 3238 3845
+55 11 4063 5033


----- Original Message ----- 
From: "Dimitri" <dimitri@xxxxxxxxxxxxx>
To: <qt-interest@xxxxxxxxxxxxx>
Sent: Monday, July 02, 2007 6:34 PM
Subject: Re: Compile CalculatorForm Error in qt 4.3 running on fedora 7


> Hi,
>
>> I am trying to compile the calculatorform example in qt 4.3 running on
>> fedora 7
>>
>> http://doc.trolltech.com/4.3/designer-calculatorform-calculatorform-cpp.html
>>
>> and I am receiving this error, anyone can help me ?
>
> The examples should have been built automatically when building Qt from 
> sources. Have you built Qt from sources?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
> 

--
 [ signature omitted ]