medions
01-02-2006, 10:17 AM
Hi all,
Can anyone tell me how I compile my C++ GUI program in KDE?
Here is my code:
#include <kapp.h>
#include <klocale.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
KApplication a( argc, argv , "p2");
QPushButton *hello=new QPushButton( i18n("Hello World !"), 0 );
hello->setAutoResize( TRUE );
QObject::connect( hello, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( hello );
hello->show();
return a.exec();
}
Can anyone tell me how I compile my C++ GUI program in KDE?
Here is my code:
#include <kapp.h>
#include <klocale.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
KApplication a( argc, argv , "p2");
QPushButton *hello=new QPushButton( i18n("Hello World !"), 0 );
hello->setAutoResize( TRUE );
QObject::connect( hello, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( hello );
hello->show();
return a.exec();
}