openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting » Getting Started With Qt And C++

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Mar-2008, 01:51
MikeP
Guest
 
Posts: n/a
Default

I wrote a C++ program that I would like to add a GUI to using QT. I have a book on QT and C++, but I'm not sure how to get started. I tried using Eclipse as an IDE but it gave me an error because it couldn't find the qt libraries I imported. I'm just don't know where to start.

This is the code I tried using, verbatim from the QT/C++ book.

#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}

I have created widgets and forms with qt designer and qt4 designer, but I can't import them into kdevelop and i dont know how to view the source code for the forms i design or if they're even in c++



Any help would be greatly appreciated,
Mike
  #2 (permalink)  
Old 28-Mar-2008, 08:04
Berislav Kovacki
Guest
 
Posts: n/a
Default

I haven't used it myself, but you can try Qt Eclipse Integration tools from Trolltech. Here are some links with more information:
Develop Qt Applications with Eclipse
Qt Eclipse Integration
  #3 (permalink)  
Old 30-Mar-2008, 00:36
MikeP
Guest
 
Posts: n/a
Default

Thanks for the information. I actually tracked down a program called qdevelop which worked rather nicely when I imported my cpp source code file. http://qdevelop.free.fr/


Thanks,
Mike
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2