LinuxQuestions.org
Register a domain and help support LQ
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 09-05-2006, 12:52 PM   #1
tito2502
LQ Newbie
 
Registered: Apr 2006
Distribution: Suse 10.1
Posts: 28

Rep: Reputation: 15
c++ developement in Linux


Hi guys, I'm more or less ported to Linux fully right now; I just need my c++.

I have a few questions on Linux developement.

First of all; GUIs.

What do people reccomend, QT, GTK?

I haven't really written my own GUI app yet so does anyone know of a good book or guide for starting to code GUIs in Linux?

Thanks, -Tito.
 
Old 09-05-2006, 01:22 PM   #2
rubadub
Member
 
Registered: Jun 2004
Posts: 233

Rep: Reputation: 33
Xlib

How about the basic alternative, a bit primitive, yet simple...
Try:
users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming.html
and
tronche.com/gui/x/
 
Old 09-05-2006, 02:51 PM   #3
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Rep: Reputation: 16
Quote:
Originally Posted by tito2502
First of all; GUIs.

What do people reccomend, QT, GTK?
Seeing as you're new to Linux, I guess you're using either KDE or Gnome as Window Manager. If so, you probably want your application to look like all the other ones in your desktop environment. If you want to program for KDE you have to use Qt and, optionally, kdeui (I think it's called like that). For Gnome it's GTK+. If you are using a different Window Manager, it doesn't matter whether you use Xlib, or anything else, but I recommend you take a closer look at Qt, since it's very easy (at least the easiest I've come across so far).
 
Old 09-05-2006, 07:33 PM   #4
lorebett
Member
 
Registered: May 2004
Location: Italy
Distribution: Ubuntu, Gentoo
Posts: 57

Rep: Reputation: 16
Qt also has very good documentation and lots of example
 
Old 09-06-2006, 05:22 PM   #5
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Qt is excellent with one exception. If you use Qt Designer (really the only way to go if you want to see your GUI as you design it), it's nearly impossible to create a base class for your QObjects and have it build correctly (if at all) unless you write a plug-in for that base class. This is impossible if you give it abstract functions, and not that simple otherwise.
ta0kira
 
Old 09-07-2006, 03:17 AM   #6
lorebett
Member
 
Registered: May 2004
Location: Italy
Distribution: Ubuntu, Gentoo
Posts: 57

Rep: Reputation: 16
Quote:
Originally Posted by ta0kira
Qt is excellent with one exception. If you use Qt Designer (really the only way to go if you want to see your GUI as you design it), it's nearly impossible to create a base class for your QObjects and have it build correctly (if at all) unless you write a plug-in for that base class. This is impossible if you give it abstract functions, and not that simple otherwise.
ta0kira
Well I usually use classes generated by QtDesigner as base classes without any problem... of course without abstract functions

Moreover, it is not hard to build a GUI manually (without Designer), especially with all the layouts classes... surely not harder than build GUIs with Java...
 
  


Reply


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
Best proccessor for game developement shotokan General 6 03-16-2006 01:03 PM
most contibuted forums and mailing lists in linux developement umeshbabu Linux - General 1 06-18-2005 10:57 PM
Slackware 10 Developement Team - Thank You! Thank You! and Thank you! perry Slackware 5 07-21-2004 11:21 AM
C++ developement environments? rank_n00b Linux - Newbie 1 06-29-2004 04:37 AM
linux hardware developement lefticy Linux - Hardware 4 01-27-2004 11:28 PM


All times are GMT -5. The time now is 07:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration