LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2011, 02:06 AM   #1
Galib
Member
 
Registered: Mar 2009
Location: $HOME
Distribution: Slackware64
Posts: 69

Rep: Reputation: 17
Red face Qt Programming


Hi, I wanted to begin learning how to develop in Qt. Aside from doing light reading, I installed Qt Creator to start working on some exercises. I am a little confused to as where to get started setting up an IDE and actually coding.

I want to attempt the exercise on this website:
http://flylib.com/books/en/2.385.1.49/1/

Quote:
Exercise: The Qt Core Module

Write a birthday reminder application called birthdays. Classes to reuse are QDate, QFile, QString, QStringList, and QTextStream.

*Store name/birthday pairs in any format you like, in a file called birthdays.dat.

*birthdays with no command line arguments opens the file and lists all birthdays coming up in the next 30 days, in chronological order.

*birthdays -a "john smith" "yyyy-mm-dd" should add an entry to the file.

*birthdays -n 40 shows birthdays coming up in the next 40 days.

*birthdays namespec searches for the birthday paired with the name namespec.
I am not asking for code help, but how do I setup for development? I've tried copy pasting some basic code to test out and have had no luck. What do you guys use for Qt development?
 
Old 01-05-2011, 02:11 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by Galib View Post
... I've tried copy pasting some basic code to test out and have had no luck. What do you guys use for Qt development?
You start in non-IDE environment - in such a manner you have a chance to understand what is really going on.
 
Old 01-05-2011, 02:15 AM   #3
Galib
Member
 
Registered: Mar 2009
Location: $HOME
Distribution: Slackware64
Posts: 69

Original Poster
Rep: Reputation: 17
Do you recommend any books or websites that will get me started?
 
Old 01-05-2011, 02:56 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940

Last edited by Aquarius_Girl; 01-05-2011 at 02:59 AM.
 
Old 01-05-2011, 04:47 AM   #5
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by Galib View Post
Do you recommend any books or websites that will get me started?
Can you compile, link and run a "Hello, world!\n" program from command line (regardless of Qt) ?

If not, enter

gcc tutorial

into a WEB search engine and start from there. Don't forget to add '-Wall -Wextra' to your compilation command line.
 
Old 01-05-2011, 05:15 AM   #6
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I find you question a little strange, given that QCreator is the IDE for Qt development. Maybe you need to explain the situation a little more. How did you install Qt onto your system, via a package manager or download?
 
Old 01-05-2011, 05:55 AM   #7
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
qt creator usually has loads of example projects.
usually at the start screen.
make sure you have 'em.
 
Old 01-05-2011, 08:58 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Try the official Qt tutorial:

http://doc.trolltech.com/4.3/tutorial.html

http://doc.trolltech.com/4.7/tutorials.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration