(KApplication use) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 38: | Line 38: | ||
== The constructor of KAboutData has changed == | == The constructor of KAboutData has changed == | ||
| − | ...or maybe not, I don't know, but in the API doc it is defined with the last two arguments | + | ...or maybe not, I don't know, but in the API doc it is defined with the last two arguments as QByteArray datatype. |
| − | I was translating this tutorial in italian and, in order to solve this problem, I'd added QByteArray("string...") to the homepage and bugs mail in the main.cpp code ( | + | I was translating this tutorial in italian and, in order to solve this problem, I'd added QByteArray("string...") to the homepage and bugs mail arguments in the main.cpp code (with the right #include of course). |
| − | Now it build and run like a charm. Maybe it is needed to | + | Now it build and run like a charm. Maybe it is needed to propagate this little mod over all the tutorial serie? --[[User:Fresbeeplayer|Fresbeeplayer]] 12:18, 28 November 2008 (UTC) |
| + | |||
| + | |||
| + | == How KApplication object has been used == | ||
| + | |||
| + | The tutorial creates KApplication object 'app'. But this object has not been used in the program. When I tried compiling after commenting the line 'KApplication app', it gave an error saying I should create a KApplicaion object before I can create other windows. Can some one explain me what is the black magic it is doing there? | ||
Adding authors to wiki pages seems counterintuitive to me. The wiki is editable by everybody. Why does it matter who the author of a tutorial is? IMHO the only thing that matters is that the tutorial is kept up to date. --Mattr 03:31, 4 January 2007 (CET)
Contents |
I don't know if this is the place to post this, but I tried to follow this tutorial and get an "error: ‘ki18n’ was not declared in this scope", when trying to compile using the big command gcc main.cpp ...
Does the g++ command work for you as described? I needed to add -lQtXml, lQtSvg and lQtNetwork.
include/KDE/../kmessagebox.h:1128: error: expected constructor, destructor, or type conversion before ‘(’ token
but hundreds, possibly thousands of errors apparently affecting nearly every header.
As far as I can see,
it presents the code, explains it, shows how to build with g++ (without cmake), building with cmake, finally running it
Well, I would prefer it to present code and run it (with no explaining), like to a monkey. After showing it works, explaining why it works or how it works. I would find that much more fun this way. Got any ideas why it should not be that way? --Bogdan Bivolaru
...or maybe not, I don't know, but in the API doc it is defined with the last two arguments as QByteArray datatype. I was translating this tutorial in italian and, in order to solve this problem, I'd added QByteArray("string...") to the homepage and bugs mail arguments in the main.cpp code (with the right #include of course). Now it build and run like a charm. Maybe it is needed to propagate this little mod over all the tutorial serie? --Fresbeeplayer 12:18, 28 November 2008 (UTC)
The tutorial creates KApplication object 'app'. But this object has not been used in the program. When I tried compiling after commenting the line 'KApplication app', it gave an error saying I should create a KApplicaion object before I can create other windows. Can some one explain me what is the black magic it is doing there?