PDA

View Full Version : Where are tutorial 2 code examples?



Mariane
24th January 2006, 18:35
It says on
http://doc.trolltech.com/3.3/tutorial2-01.html
that "The complete source for the application is in examples/chart."

But it isn't and I can't find it... I think it used to be in
http://doc.trolltech.com/3.3/examples/chart.html

because if I type
http://doc.trolltech.com/3.5/examples/chart.html

I get
"The document name you requested (/3.5/examples/chart.html)
could not be found on this server. However, we found documents
with names similar to the one you requested.

Available documents:
* /3.0/examples/chart.html (mistyped character)
* /3.3/examples/chart.html (mistyped character)
* /3.1/examples/chart.html (mistyped character)
* /3.2/examples/chart.html (mistyped character) "

But none of these links work, so it must have been moved.

Also, if someone knows where the .pdf of the tutorials have gone...? I printed
the tutorial 1 but now I would like to print the second and I can't even find
the first one again... :o :o :o

Mariane

yop
24th January 2006, 18:55
If you have Qt installed you can also find the examples' code in ($QTDIR)/doc/examples

Mariane
24th January 2006, 19:31
Installed? I have a lot of files in /usr/include/qt3
but there is no doc directory there... Any idea, please?

But I'll have a look on trolltech, see if I can find any doc in the
download section... No, got a link to a book (nearly 400 pages!)
but still no tutorial 2... It's not even mentioned in the doc I downloaded,
it only says "tutorial" and that's tutorial 1... :confused:

Mariane

yop
24th January 2006, 20:03
echo $QTDIR
Does it output /usr/include/qt3 ? I doubt it, but it's your pc you know better ;)
Do you have assistant installed? There should be a doc directory somewhere (for me (Suse 9.3) it's /usr/lib/qt3/doc).
Download the book, you'll love all 400 pages of it believe me :)

Mariane
24th January 2006, 20:22
Thank you for your help.

echo $QTDIR
Says "QTDIR: Undefined variable."

But I took your advice and downloaded the book :) .

I'm actually looking for a simple documented example with menus.
Tutorial 2 seemed promissing but I don't have the code, and Application
(another example which is supposed to give a kind of text editor) didn't
compile because it missed 3 files:

#include "filesave.xpm"
#include "fileopen.xpm"
#include "fileprint.xpm"

I found these files at http://webcvs.kde.org/qt-copy/examples/
So I'll try to understand this example instead of tutorial 2, at least until
someone can tell me where to find a working code for tutorial 2...
The code for tutorial 2 at http://webcvs.kde.org/qt-copy/examples/
doesn't compile :(

Then, I guess I'll have to start reading the book... :eek:

Mariane

PS By the way, it's not my pc at all, it's a network. I haven't a clue what
most of the stuff in /usr is... :)

yop
24th January 2006, 22:59
...The code for tutorial 2 at http://webcvs.kde.org/qt-copy/examples/
doesn't compile :(

Why what went wrong? That's the code you're looking for and it should compile.


Then, I guess I'll have to start reading the book... :eek:

:)

If you really want to see the example 2 at the trolltech site:
http://doc.trolltech.com/3.3/chart-chart-pro.html
http://doc.trolltech.com/3.3/chart-canvasview-cpp.html
http://doc.trolltech.com/3.3/chart-chartform-cpp.html
http://doc.trolltech.com/3.3/chart-chartform_canvas-cpp.html
http://doc.trolltech.com/3.3/chart-chartform_files-cpp.html
http://doc.trolltech.com/3.3/chart-element-cpp.html
http://doc.trolltech.com/3.3/chart-main-cpp.html
http://doc.trolltech.com/3.3/chart-optionsform-cpp.html
http://doc.trolltech.com/3.3/chart-setdataform-cpp.html
http://doc.trolltech.com/3.3/chart-canvastext-h.html
http://doc.trolltech.com/3.3/chart-canvasview-h.html
http://doc.trolltech.com/3.3/chart-chartform-h.html
http://doc.trolltech.com/3.3/chart-element-h.html
http://doc.trolltech.com/3.3/chart-optionsform-h.html
http://doc.trolltech.com/3.3/chart-setdataform-h.html

Thank God u didn't ask for the Qt Demo links :)

Mariane
25th January 2006, 16:02
I'll ask for it next time... :p

Thank you very much.

Mariane