[Qt-interest] HIGH_PRIORITY_ERROR

Scott Aron Bloom Scott.Bloom at sabgroup.com
Fri Feb 6 09:29:59 CET 2009


Yes... its quite clear.. your are calling setupUi with the wrong type of
class...  You are calling it with DisplayMainWindow rather than a
QMainWindow....

 

However why this is happing is left to the OP to figure out...

 

Scott

 

________________________________

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Sujan
Dasmahapatra
Sent: 2009-02-05 22:59
To: qt-interest at trolltech.com
Subject: [Qt-interest] HIGH_PRIORITY_ERROR

 

Dear Friends

I have a UI header file and from there I have created another header
file where  in the class I have declared a private member as
Ui::MainWindow ui; 

Now in my .cpp file I am trying to call the UI header's steupUi(this)
function and it gives the following error on compilation..Please let me
know the reseaon..Thanks

 

LMG_GUI_Design_CFD.cpp: In constructor
`DisplayMainWindow::DisplayMainWindow(QWidget*)':

LMG_GUI_Design_CFD.cpp:5: error: no matching function for call to
`Ui::MainWindow::setupUi(DisplayMainWindow* const)'

ui_LMG_GUI_Design_CFD.h:85: note: candidates are: void
Ui_MainWindow::setupUi(QMainWindow*)

 

Kind regards, 
LM Glasfiber R&D (India) Pvt. Ltd.
 
Sujan Dasmahapatra
Project Engineer - CFD
  
Telephone: +91 80 66470248 
Mobile: +919900839788
E-mail: sdh at lmglasfiber.com 

 

 

 

 

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

This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.

 

________________________________

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

This E-mail and any attachments are confidential. If you are not the
named or intended receipient, please notify the sender immediately and
do not disclose the contents to any other person, use it for any purpose
or store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090206/6311ba10/attachment.html 


More information about the Qt-interest-old mailing list