LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-20-2010, 01:23 PM   #31
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723

I guess Qt is better then

Also, this led me to KDE-Look.org, where I found that there really are a lot of nice Qt themes!

Just one more thing: what about Perl?

And I still wonder, why are non-KDE Qt apps so rare?
 
Old 07-20-2010, 01:26 PM   #32
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by MTK358 View Post
And I still wonder, why are non-KDE Qt apps so rare?
Because there's really no benefit in not taking advantage of KDE, unless your app needs to run on platforms where KDE isn't available. Combining Qt with KDE gives you a richer API and access to KDE's theme engine.

My MPD client is a KDE app because I wanted access to KDE's icons (for the toolbar). and because I wanted it to be KDE-themed.

http://www.vcn.bc.ca/~dugan/quetzalcoatl.html

Last edited by dugan; 07-20-2010 at 01:28 PM.
 
Old 07-20-2010, 01:30 PM   #33
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
...
Just one more thing: what about Perl?
...
C++ is harder to bind than "C" - regardless of Qt specifically. There are some Qt4 bindings, haven't tried them.

Alas, the same sad story with OCaml - Qt3 bindings exist, but I haven't found Qt4 bindings. gtk+ bindings exist.
 
Old 07-20-2010, 01:30 PM   #34
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
What if someone wants a lightweight low-resource desktop using Qt apps but doesn't want to pull in KDE dependencies?

Also, why are KDE and "pure" Qt themes separate?
 
Old 07-20-2010, 07:55 PM   #35
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I'm checking this out:

http://qt-apps.org/content/show.php/...?content=69748
 
Old 07-20-2010, 08:30 PM   #36
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
Yep, that's the Qt4 bindings I meant. Even if you manage to compile, the question is completeness. Though I'm not familiar in detail with Qt4 and these bindings, but somehow the question arose.
 
Old 07-21-2010, 02:25 AM   #37
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Quote:
What if someone wants a lightweight low-resource desktop using Qt
Qt embedded uses the frame buffer, no X needed
 
Old 07-21-2010, 06:34 AM   #38
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I just meant what if someone wants a KDE-less desktop using Qt apps?

Still, the main thing that puzzles me now it why Qt themes and KDE themes are separate?
 
Old 07-21-2010, 07:06 AM   #39
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
It tried Perl Qt4, it failed to compile. I also tried converting the RPM packages to pacman, they installed without an error, the files in the hard drive went where they were supposed to in the original RPM, but Perl says it can't find the modules when I try one of the examples.
 
Old 08-17-2010, 01:57 AM   #40
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by Sergei Steshenko View Post
A couple of reasons:
  1. Qt license used to be restrictive for a long time, i.e. there was no LFPL option;
  2. Folks in the US do not quite like things developed in Europe (Qt is a European creation), RedHat prefers Gnome, etc.
Yes... Very good point Sergei: Even though Torvalds likes Qt doesn't mean that other FOSS users will. I am American (from California) but actually really prefer Qt Designer over Glade as well -- You don't need as many widgets (e.g. Layout) on top of the MainWindow class, You can develop complex GUIs with it without much difficulty, etc and in most cases without even knowing how to code -- you just plug in widgets and go, compiling when you're done. Even though you can also do this with Glade, in GTK most widgets depend on others, which makes for a messy experience.
 
Old 08-17-2010, 07:30 AM   #41
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Also, how can you even lay widgets out in GTK/Glade? They seem to be smooshed right together by default and the only appearant way to have some space between them is to hard-code pixel values <shiver>. OTOH, Qt makes it beautiful on its own! It sacrifices flexibility for actually being able to do what you always want. Am I misunderstanding something, or is there really no way to change this behavior in GTK?

But I kind of agree with Kenny_Strawn about the licensing. It might be FOSS now, but it's not like it's community-developed or was designed with the FOSS spirit. In fact, I have the idea (whether it's true or not) that Qt was only made free because of the pressure of all those angry KDE users who had to get illegal copies of Qt, not because they like or support FOSS.

Last edited by MTK358; 08-17-2010 at 07:32 AM.
 
Old 08-17-2010, 08:23 AM   #42
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
Also, how can you even lay widgets out in GTK/Glade? They seem to be smooshed right together by default and the only appearant way to have some space between them is to hard-code pixel values <shiver>.
...

AFAIR 'glade' has a notion of packing boxes.

...

Yes, it does: http://wingtk.sourceforge.net/ishan/glade.html .
 
Old 08-17-2010, 08:26 AM   #43
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
...
But I kind of agree with Kenny_Strawn about the licensing. It might be FOSS now, but it's not like it's community-developed or was designed with the FOSS spirit. In fact, I have the idea (whether it's true or not) that Qt was only made free because of the pressure of all those angry KDE users who had to get illegal copies of Qt, not because they like or support FOSS.
It's a good thing Qt was designed by a commercial entity - that's why we have much less mess in it.

And sometimes I am sick and tired of ardent GPL3 proponents ideological stance.
 
Old 08-17-2010, 09:41 AM   #44
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by Sergei Steshenko View Post
AFAIR 'glade' has a notion of packing boxes.
I know. I am talking about the distance between items in a packing box.

EDIT: see attached screenshot (in case you're wondering, the theme is QtCurve with a custom config. I wish I used a different theme for this screenshot that would better show the way the buttons are squeezed together with no gaps.).
Attached Thumbnails
Click image for larger version

Name:	qt-vs-gtk-boxlayout.jpeg
Views:	25
Size:	29.4 KB
ID:	4336  

Last edited by MTK358; 08-17-2010 at 10:18 AM.
 
Old 08-17-2010, 10:53 AM   #45
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by MTK358 View Post
Also, how can you even lay widgets out in GTK/Glade? They seem to be smooshed right together by default and the only appearant way to have some space between them is to hard-code pixel values <shiver>. OTOH, Qt makes it beautiful on its own! It sacrifices flexibility for actually being able to do what you always want. Am I misunderstanding something, or is there really no way to change this behavior in GTK?

But I kind of agree with Kenny_Strawn about the licensing. It might be FOSS now, but it's not like it's community-developed or was designed with the FOSS spirit. In fact, I have the idea (whether it's true or not) that Qt was only made free because of the pressure of all those angry KDE users who had to get illegal copies of Qt, not because they like or support FOSS.
You know, it's really up to the user whether to use Qt or GTK. If I had to choose, I would really choose Qt in some cases because it's cleaner (to design complex GUIs) and GTK for mainstream applications (i.e. Web browsers, office suites, terminal emulators, social clients, /etc). But it's your choice. I would say go with what you think is more practical.
 
  


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
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
gtk-qt-engine causes white border on gtk tray icons tdtooke Linux - Desktop 0 08-08-2008 12:25 PM
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 01:33 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM

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

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

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