Difference between revisions of "KApplication template"
Jump to navigation
Jump to search
imported>Eliddell (Created page with "Category:Developers Category:KDE3 Category:Tutorials <syntaxhighlight lang="text"> #include <qstring.h> #include <kapplication.h> #include <kaboutdata.h> #include...") |
m (Correct syntax highlighter) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
[[Category:KDE3]] |
[[Category:KDE3]] |
||
[[Category:Tutorials]] |
[[Category:Tutorials]] |
||
+ | {{Applicable to TDE}} |
||
− | <syntaxhighlight lang=" |
+ | <syntaxhighlight lang="cpp"> |
− | #include < |
+ | #include <tqstring.h> |
− | #include < |
+ | #include <tdeapplication.h> |
− | #include < |
+ | #include <tdeaboutdata.h> |
− | #include < |
+ | #include <tdemessagebox.h> |
− | #include < |
+ | #include <tdecmdlineargs.h> |
int main (int argc, char *argv[]) |
int main (int argc, char *argv[]) |
||
{ |
{ |
||
− | + | TDEAboutData aboutData( "test", "test", |
|
− | "1.0", "test", |
+ | "1.0", "test", TDEAboutData::License_GPL, |
− | "(c) |
+ | "(c) 2021" ); |
− | + | TDECmdLineArgs::init( argc, argv, &aboutData ); |
|
− | + | TDEApplication hello_tde; |
|
KMessageBox::information(0,"This is an example"); |
KMessageBox::information(0,"This is an example"); |
||
} |
} |
Latest revision as of 21:35, 22 August 2021
Information on this page is applicable to TDE
This page contains archived KDE 3.x content from various sources which is directly applicable to (or has been updated for) the Trinity Desktop Environment.#include <tqstring.h>
#include <tdeapplication.h>
#include <tdeaboutdata.h>
#include <tdemessagebox.h>
#include <tdecmdlineargs.h>
int main (int argc, char *argv[])
{
TDEAboutData aboutData( "test", "test",
"1.0", "test", TDEAboutData::License_GPL,
"(c) 2021" );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDEApplication hello_tde;
KMessageBox::information(0,"This is an example");
}