ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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
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!!
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)...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.