Click to See Complete Forum and Search --> : X programming language opinions
tecknophreak
03-04-2003, 05:44 PM
I'm looking to do some programming for X windows. I'm probably just going to run it straight from X without a window manager.
Since I have a background in C/C++, I'm looking for something like that. Something like GTK+, or QT, which I can program in c/c++ and use with or without a window manager.
Anyone have any preferences?
I know it's a little along the lines of saying "what distro is better" or "which language should i program in" but i'm looking for some opinions anyway. :p
Strike
03-04-2003, 06:19 PM
Well, most widget toolkits use windows that are handled by a window manager (i.e., they don't do their own decorations and they don't handle the events that would exist if those decorations were there). If you want raw stuff where you do everything, you'll have to do something like Xlib or maybe OpenGL
GaryJones32
03-05-2003, 01:15 AM
It is quite possible to do what you said - x without a window manager - with qt
I mean whats a window manager -- just a titlebar and a few buttons.
the trick is once you get it to show up (if you can) after you pass the app to xinit
you have to get focus for interaction
there is a show() and something like setActiveWindow() to bring focus to the top widget
seems like qt is more suited cause it's higher level language
gtk i mean you could actually write a gui that doesn't even need x :)
but i say that without any gtk experience at all...........
tecknophreak
03-05-2003, 11:21 AM
well, i think i'm going to go with GTK+. I mean QT is easy, but if i ever want to use it for comercial use, I'll have to buy some software.
GTK+ is under the LGPL, so you can use it even for commercial use. however, i think if i'd have an app which would never make it out there, it'd probabaly go with QT.