Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, February 2007
Help needed


Message 1 in thread

Hi.
I have recently brought a book called C++ GUI programming with QT4, and I 
can't get it to work. I have installed both QT4 and MinGW, but everytime I 
try to compile the program, I get several compile errors, some about not 
recognising <QApplication> and <QLabel>, others about 'parse errors' which 
unfortunately I don't know about.
Any help on this matter would be much appreciated.
Apologies if this is the wrong mailing list.

_________________________________________________________________
Get Hotmail, News, Sport and Entertainment from MSN on your mobile.  
http://www.msn.txt4content.com/

--
 [ signature omitted ] 

Message 2 in thread

El Viernes 16 Febrero 2007 11:10, Marco Gallone escribió:
> Hi.
> I have recently brought a book called C++ GUI programming with QT4, and I
> can't get it to work. I have installed both QT4 and MinGW, but everytime I
> try to compile the program, I get several compile errors, some about not
> recognising <QApplication> and <QLabel>, others about 'parse errors' which
> unfortunately I don't know about.
> Any help on this matter would be much appreciated.
> Apologies if this is the wrong mailing list.

¿Are you compiling via the QT console link? I mean, in 
Programs -> Qt 4.x.x -> Qt console 

Regards, Lisandro


-- 
 [ signature omitted ] 

Message 3 in thread

Marco Gallone schrieb:
> Hi.
> I have recently brought a book called C++ GUI programming with QT4, and
> I can't get it to work.

Okay, this is a step by step "How-to get your book working":

- Look at the cover to make sure you've goot the right book
  (look at the large letters)

- If the large letters appear upside town, turn the book by
  180 degrees

- If you see a big grinning face, it might be that you are looking
  at the back of the book (it's the author's face). Turn it
  appropriatelly until you see the big friendly letters (the
  book title) (*)

- Now open the first page. It is usually blank, but don't get
  confused yet (sometimes though there appears a silly "I would
  like to dedicate this book to..." sentence)

- After turning to the next page you will finally
  arrive to what is called "table of content". This is an
  advanced subject so we will skip it for now. Turn to the
  next pages until you reach the foreword

- Read the foreword. If you still like the book go on reading. Else
  bring back the book to where you've purchased it.

- Read the 1st chapter

- If you have not found what you were looking for, it might now
  be the time to skip back to the "table of content" (see below).

- If you are adventurous though you might read on, until
  you have reached the end of the book (sometimes it is marked
  in capital letters with "THE END", so you won't accidentally
  read past the end of the book, which would result in a "book
  overflow"!)

- The "table of content": this is for advanced users (expert users
  might also refer to the "appendix", but we'll leave this out for
  now). Each "chapter" is identified by a title, together with a
  number, the "page ID". Each page has a little number printed on
  it (mostly on the bottom left/right of the pages).

- When you have found a "chapter" which you like, search the proper
  page, given the page ID:
  - Beginners should begin with a "linear search", starting with the
    first page after the "table of content"
  - Advanced users will prefer a "Binary search", starting
    approximatelly in the middle of the book
  - Expert users will use a "random search"

- When you have found the proper chapter, go on just like with the
  1st chapter (but pay attention that you don't read the following
  chapter accidentally, except if you are adventurous and would like
  to read until the end of the book)

That's it! In a similar way you can almost enjoy any other book!

(*) There are several strategies turning a book to the right
orientation, but this is left as an exercise for the reader.

> Any help on this matter would be much appreciated.

You're welcome :)

> Apologies if this is the wrong mailing list.

Don't worry - we are all nice people on this list and sometimes are very
happy to share our knowledge, also about off-topic issues ;)


Cheers, Oliver

p.s. Don't get offended! But today it's Friday, so I'm allowed to write
such a silly post ;)

--
 [ signature omitted ] 

Message 4 in thread

This has got to be one of the funniest and possibly most accurate and
thorough post I've ever seen on the list!

Thanks Oliver for lightening my Friday! 

-----Original Message-----
From: Till Oliver Knoll [mailto:oliver.knoll@xxxxxxxxxxx] 
Sent: Friday, February 16, 2007 10:17 AM
To: Qt Interest List
Subject: [OT] Re: Help needed

Marco Gallone schrieb:
> Hi.
> I have recently brought a book called C++ GUI programming with QT4, 
> and I can't get it to work.

Okay, this is a step by step "How-to get your book working":

- Look at the cover to make sure you've goot the right book
  (look at the large letters)

- If the large letters appear upside town, turn the book by
  180 degrees

- If you see a big grinning face, it might be that you are looking
  at the back of the book (it's the author's face). Turn it
  appropriatelly until you see the big friendly letters (the
  book title) (*)

- Now open the first page. It is usually blank, but don't get
  confused yet (sometimes though there appears a silly "I would
  like to dedicate this book to..." sentence)

- After turning to the next page you will finally
  arrive to what is called "table of content". This is an
  advanced subject so we will skip it for now. Turn to the
  next pages until you reach the foreword

- Read the foreword. If you still like the book go on reading. Else
  bring back the book to where you've purchased it.

- Read the 1st chapter

- If you have not found what you were looking for, it might now
  be the time to skip back to the "table of content" (see below).

- If you are adventurous though you might read on, until
  you have reached the end of the book (sometimes it is marked
  in capital letters with "THE END", so you won't accidentally
  read past the end of the book, which would result in a "book
  overflow"!)

- The "table of content": this is for advanced users (expert users
  might also refer to the "appendix", but we'll leave this out for
  now). Each "chapter" is identified by a title, together with a
  number, the "page ID". Each page has a little number printed on
  it (mostly on the bottom left/right of the pages).

- When you have found a "chapter" which you like, search the proper
  page, given the page ID:
  - Beginners should begin with a "linear search", starting with the
    first page after the "table of content"
  - Advanced users will prefer a "Binary search", starting
    approximatelly in the middle of the book
  - Expert users will use a "random search"

- When you have found the proper chapter, go on just like with the
  1st chapter (but pay attention that you don't read the following
  chapter accidentally, except if you are adventurous and would like
  to read until the end of the book)

That's it! In a similar way you can almost enjoy any other book!

(*) There are several strategies turning a book to the right
orientation, but this is left as an exercise for the reader.

> Any help on this matter would be much appreciated.

You're welcome :)

> Apologies if this is the wrong mailing list.

Don't worry - we are all nice people on this list and sometimes are very
happy to share our knowledge, also about off-topic issues ;)


Cheers, Oliver

p.s. Don't get offended! But today it's Friday, so I'm allowed to write
such a silly post ;)

--
 [ signature omitted ] 

Message 5 in thread

In a very similar vein:

http://www.youtube.com/watch?v=eRjVeRbhtRU&eurl

On 2/16/07, Murphy, Sean M. <sean.murphy@xxxxxxxxxx> wrote:
> This has got to be one of the funniest and possibly most accurate and
> thorough post I've ever seen on the list!
>
> Thanks Oliver for lightening my Friday!
>
> -----Original Message-----
> From: Till Oliver Knoll [mailto:oliver.knoll@xxxxxxxxxxx]
> Sent: Friday, February 16, 2007 10:17 AM
> To: Qt Interest List
> Subject: [OT] Re: Help needed
>
> Marco Gallone schrieb:
> > Hi.
> > I have recently brought a book called C++ GUI programming with QT4,
> > and I can't get it to work.
>
> Okay, this is a step by step "How-to get your book working":
>
> - Look at the cover to make sure you've goot the right book
>   (look at the large letters)
>
> - If the large letters appear upside town, turn the book by
>   180 degrees
>
> - If you see a big grinning face, it might be that you are looking
>   at the back of the book (it's the author's face). Turn it
>   appropriatelly until you see the big friendly letters (the
>   book title) (*)
>
> - Now open the first page. It is usually blank, but don't get
>   confused yet (sometimes though there appears a silly "I would
>   like to dedicate this book to..." sentence)
>
> - After turning to the next page you will finally
>   arrive to what is called "table of content". This is an
>   advanced subject so we will skip it for now. Turn to the
>   next pages until you reach the foreword
>
> - Read the foreword. If you still like the book go on reading. Else
>   bring back the book to where you've purchased it.
>
> - Read the 1st chapter
>
> - If you have not found what you were looking for, it might now
>   be the time to skip back to the "table of content" (see below).
>
> - If you are adventurous though you might read on, until
>   you have reached the end of the book (sometimes it is marked
>   in capital letters with "THE END", so you won't accidentally
>   read past the end of the book, which would result in a "book
>   overflow"!)
>
> - The "table of content": this is for advanced users (expert users
>   might also refer to the "appendix", but we'll leave this out for
>   now). Each "chapter" is identified by a title, together with a
>   number, the "page ID". Each page has a little number printed on
>   it (mostly on the bottom left/right of the pages).
>
> - When you have found a "chapter" which you like, search the proper
>   page, given the page ID:
>   - Beginners should begin with a "linear search", starting with the
>     first page after the "table of content"
>   - Advanced users will prefer a "Binary search", starting
>     approximatelly in the middle of the book
>   - Expert users will use a "random search"
>
> - When you have found the proper chapter, go on just like with the
>   1st chapter (but pay attention that you don't read the following
>   chapter accidentally, except if you are adventurous and would like
>   to read until the end of the book)
>
> That's it! In a similar way you can almost enjoy any other book!
>
> (*) There are several strategies turning a book to the right
> orientation, but this is left as an exercise for the reader.
>
> > Any help on this matter would be much appreciated.
>
> You're welcome :)
>
> > Apologies if this is the wrong mailing list.
>
> Don't worry - we are all nice people on this list and sometimes are very
> happy to share our knowledge, also about off-topic issues ;)
>
>
> Cheers, Oliver
>
> p.s. Don't get offended! But today it's Friday, so I'm allowed to write
> such a silly post ;)
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 6 in thread

El Viernes 16 Febrero 2007 12:16, Till Oliver Knoll escribió:
> Marco Gallone schrieb:
> > Hi.
> > I have recently brought a book called C++ GUI programming with QT4, and
> > I can't get it to work.
>
> Okay, this is a step by step "How-to get your book working":
>
> - Look at the cover to make sure you've goot the right book
>   (look at the large letters)
>
> - If the large letters appear upside town, turn the book by
>   180 degrees
>
> - If you see a big grinning face, it might be that you are looking
>   at the back of the book (it's the author's face). Turn it
>   appropriatelly until you see the big friendly letters (the
>   book title) (*)
>
> - Now open the first page. It is usually blank, but don't get
>   confused yet (sometimes though there appears a silly "I would
>   like to dedicate this book to..." sentence)
>
> - After turning to the next page you will finally
>   arrive to what is called "table of content". This is an
>   advanced subject so we will skip it for now. Turn to the
>   next pages until you reach the foreword
>
> - Read the foreword. If you still like the book go on reading. Else
>   bring back the book to where you've purchased it.
>
> - Read the 1st chapter
>
> - If you have not found what you were looking for, it might now
>   be the time to skip back to the "table of content" (see below).
>
> - If you are adventurous though you might read on, until
>   you have reached the end of the book (sometimes it is marked
>   in capital letters with "THE END", so you won't accidentally
>   read past the end of the book, which would result in a "book
>   overflow"!)
>
> - The "table of content": this is for advanced users (expert users
>   might also refer to the "appendix", but we'll leave this out for
>   now). Each "chapter" is identified by a title, together with a
>   number, the "page ID". Each page has a little number printed on
>   it (mostly on the bottom left/right of the pages).
>
> - When you have found a "chapter" which you like, search the proper
>   page, given the page ID:
>   - Beginners should begin with a "linear search", starting with the
>     first page after the "table of content"
>   - Advanced users will prefer a "Binary search", starting
>     approximatelly in the middle of the book
>   - Expert users will use a "random search"
>
> - When you have found the proper chapter, go on just like with the
>   1st chapter (but pay attention that you don't read the following
>   chapter accidentally, except if you are adventurous and would like
>   to read until the end of the book)
>
> That's it! In a similar way you can almost enjoy any other book!
>
> (*) There are several strategies turning a book to the right
> orientation, but this is left as an exercise for the reader.
>
> > Any help on this matter would be much appreciated.
>
> You're welcome :)
>
> > Apologies if this is the wrong mailing list.
>
> Don't worry - we are all nice people on this list and sometimes are very
> happy to share our knowledge, also about off-topic issues ;)
>
>
> Cheers, Oliver
>
> p.s. Don't get offended! But today it's Friday, so I'm allowed to write
> such a silly post ;)

LOL! Thanks for the humor!

-- 
 [ signature omitted ] 

Message 7 in thread

Marco Gallone

Please contact me off list. I will help you get started with the book.

Jim.
w4atk@xxxxxxxxxxxxx

--
 [ signature omitted ] 

Message 8 in thread

At great risk of being flamed here.....

Marco,
The book CD installs Qt4 in /usr/local/Trolltech/Qt-4.1.1.

The Makefile are unfortunately looking for all the stuff to be
in /usr/local/Trolltech/Qt4.

You can use the -I directive with make:
	make -I /usr/local/Trolltech/Qt-4.1.1
OR do as I did and simply
	cp -r /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4.

Jim

--
 [ signature omitted ] 

Message 9 in thread

El Viernes 16 Febrero 2007 12:53, Jim Rogers escribió:
> At great risk of being flamed here.....

I don't see why (appart from the misswriting that originated a very funny 
answer) the question seems all right from me

> Marco,
> The book CD installs Qt4 in /usr/local/Trolltech/Qt-4.1.1.
>
> The Makefile are unfortunately looking for all the stuff to be
> in /usr/local/Trolltech/Qt4.
>
> You can use the -I directive with make:
> 	make -I /usr/local/Trolltech/Qt-4.1.1
> OR do as I did and simply
> 	cp -r /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4.

Ah, I suposed (wrongly, I see) that Marco was trying to compile some code of 
himself. I guess it's because I did that before I buyed the book :-)

Regards, and good luck Marco!

-- 
 [ signature omitted ] 

Message 10 in thread

On 2/16/07, Jim Rogers <w4atk@xxxxxxxxxxxxx> wrote:
> At great risk of being flamed here.....
>
> Marco,
> The book CD installs Qt4 in /usr/local/Trolltech/Qt-4.1.1.
>
> The Makefile are unfortunately looking for all the stuff to be
> in /usr/local/Trolltech/Qt4.
>
> You can use the -I directive with make:
>         make -I /usr/local/Trolltech/Qt-4.1.1
> OR do as I did and simply
>         cp -r /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4.

cp? symlink would suffice, no wasted disk space :)

ln -s /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4

Also, if you use project files and invoke the correct qmake directly,
it handles all the includes and such on its own:

/usr/local/Trolltech/Qt-4.1.1/bin/qmake && make

Also, you may need to add /usr/local/Trolltech/Qt-4.1.1/lib to
LD_LIBRARY_PATH (so the .so files can be found)

Martin Petricek

> Jim

--
 [ signature omitted ] 

Message 11 in thread

El Viernes 16 Febrero 2007 13:08, BH escribió:
> On 2/16/07, Jim Rogers <w4atk@xxxxxxxxxxxxx> wrote:
> > At great risk of being flamed here.....
> >
> > Marco,
> > The book CD installs Qt4 in /usr/local/Trolltech/Qt-4.1.1.
> >
> > The Makefile are unfortunately looking for all the stuff to be
> > in /usr/local/Trolltech/Qt4.
> >
> > You can use the -I directive with make:
> >         make -I /usr/local/Trolltech/Qt-4.1.1
> > OR do as I did and simply
> >         cp -r /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4.
>
> cp? symlink would suffice, no wasted disk space :)
>
> ln -s /usr/local/Trolltech/Qt-4.1.1  /usrlocal/Trolltech/Qt4
>
> Also, if you use project files and invoke the correct qmake directly,
> it handles all the includes and such on its own:
>
> /usr/local/Trolltech/Qt-4.1.1/bin/qmake && make
>
> Also, you may need to add /usr/local/Trolltech/Qt-4.1.1/lib to
> LD_LIBRARY_PATH (so the .so files can be found)

Hmm, he said he installed MinGW, so I guess the above does not applies to him, 
as usually Qt installs itself in c:\Qt\4.1.1\> (perhaps it is possible to 
install it that way using also MSys, I don't know)

Regards, Lisandro.

-- 
 [ signature omitted ]