[Qt-interest] Qt newbie needs some help with Xcode

Norman Rosner normanrosner at googlemail.com
Wed May 27 11:15:53 CEST 2009


Hi folks,

I'm stuck in a problem and I can't find a solution to it. I'm using the
current version of Qt with Xcode. Here is what I did:
In my Project Folder there's a main.cpp and i have set up a MainWindow.ui
file.

I set up a project using qmake -project in a folder.
Then I ran qmake -spec mac-xcode

Now when I start up the created Xcode project I created a new Class that
inherits from Ui::MainWindow and QMainWindow in MainWindow.h and
MainWindow.cpp.

So now, when I run Build and Go I get errors like this one:

"MainWindow::~MainWindow()", referenced from:
vtable for MainWindowin moc_MainWindow.o

I think it has something to do with moc and compiling MainWindow.ui

So what am I doing wrong?

Do i always have to run qmake -spec macx-xcode when I added new files?

I looked into two books about Qt but i didn't find the answer.

Would be nice to get some help from somebody who works with Xcode and Qt
too.

Cheers,

norman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090527/50e2938e/attachment.html 


More information about the Qt-interest-old mailing list