Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 01-17-2005, 09:30 AM   #1
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Rep: Reputation: 17
GUI development from scratch

Im learning c++ and I have found several GUI toolkits. Some of wich I like a lot, but Im not completely happy with them (for one reason or another).
I am very intersted in GUI development, I would like to know about where to look for info about how to develop GUIs from scratch.
Books or tutorials, I have been doing some google, but I dont seem to find anything in this matter.
Another thing, I would like them to be platform independent.
As i said Im just beggining, but I think that GUIs is where I would like to get in the future.

Thanks in advance.
Old 01-17-2005, 10:30 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
What do you mean by from scratch?

If you mean that you'd like to start developing new GUIs using existing libraries, then you may want to take a look at the documentation for Qt ( It provides very good tutorials (and I suspect there's something similar on the gtk homepage, although I haven't used gtk myself).

If, on the other hand, you want to learn how the Linux X-windows GUI works from the X server up, then you should look for documentation on a package called Xlib. Good books on Xlib are few, far between, heavy and expensive (in my experience) but it really is the lowest-level API for GUI development in common usage. There are also alternatives, like SVGAlib for drawing in the console rather than on an X server.
Old 01-17-2005, 11:04 AM   #3
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 17
Im interested in writing my own libraries, or new libraries (like new widgets) for already made packages like QT, WideStudio, GTK, WxWidgets and so on, not just using what they already have.

For what I can see I will be talking to the Xlib to draw things in the screen, still, I would like it to be OS independent.

Old 01-17-2005, 11:20 AM   #4
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Dive deep into GTk, Qt, or whatever tookit, and try to build your tookit on top of their base-classes, or just try first to make extensions to it.

Could save you a lot of hassle, especially if you want to be OS-independent. Even creating a "Hello World" program using Xlib is a non-trivial task at all. Let alone building a whole new API on top of it. You said you were just beginning...
Old 01-17-2005, 11:37 AM   #5
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 17
Thats more less what Ive been doing (reading their source code).
What Im looking for is the basics, it is a long term plan.
But I cant seem to find books or anything that will guide me in this matter.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GUI development options in Linux sureshkellemane Linux - General 7 08-12-2005 02:05 AM
Cross Platform GUI development Artik Programming 15 06-29-2005 06:36 PM
GUI development tool mathew_geo Programming 1 05-27-2004 08:03 AM
Adding a Network card from scratch - not using the gui... mjstempf Linux - Networking 2 10-01-2003 06:14 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:13 PM.

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