[Qt-interest] HIGH_PRIORITY_ERROR

Malyushytsky, Alex alex at wai.com
Sat Feb 7 00:24:55 CET 2009


Mostly likely compiler can't find relations between DisplayMainWindow and QMainWindow.
First thing to check is DisplayMainWindow derived from QMainWindow, second does you cpp file (LMG_GUI_Design_CFD.cpp)
have appropriate include (DisplayMainWindow.h ?).

I would also suggest you to read about general mailing list etiquette, for example at http://www.emailreplies.com/ .
It might help you to get help in the future.

Best regards,
   Alex Malyushytsky

________________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Sujan Dasmahapatra
Sent: Thursday, February 05, 2009 10:59 PM
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





---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list