Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Crossplatform GUI using Qt
04-23-2009, 12:46 PM
Post: #1
C++ Crossplatform GUI using Qt
Qt is a platform which enables to create cross platform GUI using C++ language that can run on almost all the existing operating systems (Windows, Mac, Linux). visit QT Software for more information.

The following code snippet shows how to right a small hello world GUI application using Qt. The hello world will be displayed in a small QPushButton You need Qt libraries to compile and run this.

main.cpp

#include <QtGui/QApplication>
#include <QtGui/QPushButton>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton hello("Hello world!");
hello.resize(100, 30);

hello.show();
return app.exec();
}
Find all posts by this user
Quote this message in a reply
09-17-2009, 05:27 PM
Post: #2
RE: C++ Crossplatform GUI using Qt
Hi,
This is actually the how to show buttons but can you help me in making the menu bars in the c++?

Thanks for sharing this information.

cadeau
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


Contact Us | Coder Passion | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication | Site Map