LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-13-2005, 04:53 PM   #16
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30

Thanks, that has helped loads. I know about inheritance, but I'll just check up on method overwriting, as I never really have had to use that before. I'll continue looking at KMess...
 
Old 10-14-2005, 01:46 AM   #17
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
Sorry, but what do you mean by QWidget, and how do I give it a classname. I'm getting there, but all this 'Q....' is hard to learn. Still, I will persevere
 
Old 10-14-2005, 02:05 AM   #18
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Rep: Reputation: 15
I would really recommend going through the tutorial on trolltech.com. This will get you started into the world of QWidget and all those other confusing classes.

I would also recommend reading a good book/online tutorial on C++. This is kind of essential once you want to get beyond just putting up pretty widgets. What if you want to actually do something with it!!

Just a suggestion.

Rhys
 
Old 10-14-2005, 07:40 AM   #19
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
I was thinking about buying the book C++ GUI Programming with QT 3 (They're also make one on QT 4 as well). Apparently it's the only official book(s)...
 
Old 10-14-2005, 08:23 AM   #20
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Rep: Reputation: 15
Hmm, I was thinking about it also, but when Qt4 comes out, it will be out of date. I am not sure how long it is going to be, but I'm planning on waiting.

Rhys
 
Old 10-14-2005, 12:15 PM   #21
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
I'll think I'll struggle along for the mo....
 
Old 10-14-2005, 12:49 PM   #22
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by BuckRogers01
Sorry, but what do you mean by QWidget, and how do I give it a classname. I'm getting there, but all this 'Q....' is hard to learn. Still, I will persevere
When you create an dialog/whatever in QT designer, you can specify the type of the dialog. Choose "widget" or "QWidget". It gives you an empty drawing space without any extra's.

Your class inheritance becomes: QObject -> QWidget -> YourWidgetInterface (created with the designer) -> YourWidget (created in C++).


About the Qt book, I'd recommend getting it anyway. Once Qt 4 is the new standard, you can follow any random tutorial on the Internet about what's changed. It's not like everything will be completely different, the basic stuff remains the same.
 
Old 10-15-2005, 08:35 AM   #23
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
What type of project should I start with in KDevelop if I just want a shell, ready for my own widgets
 
Old 10-15-2005, 12:31 PM   #24
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by BuckRogers01
What type of project should I start with in KDevelop if I just want a shell, ready for my own widgets
eehh.. "Simple Designer based KDE application"?
 
Old 10-16-2005, 08:23 AM   #25
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
Can u recommend one?
 
Old 10-17-2005, 12:57 PM   #26
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by BuckRogers01
Can u recommend one?
I just did. It can be found in the KDevelop "new file" dialog. I hope you have kdelibs-devel installed?
 
Old 10-18-2005, 11:13 AM   #27
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
lol, I thought u were just going 'errr'. Anyway, i'll check it out...
 
Old 10-18-2005, 12:01 PM   #28
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by BuckRogers01
lol, I thought u were just going 'errr'. Anyway, i'll check it out...
Let's say the question was just a bit too obvious I hope you don't take it too seriously.

(unless off course, there is a good reason why the "KDE application" thing doesn't show up in the "new" dialog)
 
Old 10-19-2005, 03:52 PM   #29
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
Dnt worry, Im only playing, I realise what you meant by ur second last post. I'll check it out...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant start X apps using su or sudo slinky2004 Linux - Newbie 3 11-30-2005 08:14 PM
Where should I start if want to learn writing drivers under linux?? happy_maoron Programming 5 10-24-2005 03:39 PM
KDE 3.3.2 - Mouse Wheel Only Scrolls in KDE Apps mac57 Linux - Software 0 01-19-2005 09:29 AM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 12:58 PM
Writing a start up script psychoholic Linux - Newbie 1 12-19-2002 11:47 AM

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

All times are GMT -5. The time now is 05:42 PM.

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