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.
Hello, I know to program with Qt, and I like the way it is designed.
but I prefer Gnome, my question is - will there be any performance penalty for using Qt apps under Gnome?
(apart from the need to install the Qt runtime, and the fact that the looks might be different).
is there anything i can do with Gtk that i can't do with Qt because my program operates under Gnome?
Yes, there will be a performance hit - startup time may be increased in a GTK environment, as a QT app will have to load the QT libs into memory, whereas most of the GTK libs will already be loaded for a GTK app. There will be more total memory used in a GTK + QT situation for the same reason.
"is there anything i can do with Gtk that i can't do with Qt because my program operates under Gnome?"
Probably not. Unless you're relying on KDE environment stuff like arts you should be fine, and even then it shouldn't be an insurmountable problem.
Plenty of people run Gnome but use, for example, k3b for burning CDs, and don't have any issues. I wouldn't worry about it.
Many Gnome users object to running KDE applications because they tend to start up a bunch of KDE daemon processes which hog memory and CPU cycles. QT apps don't have to use the KDE libraries of course, so if you intend to appeal to gnome users avoid using KDE libraries.
As long as the loading time and memory footprint overhead aren't that bad, I still prefer Qt.
(it's like preferring C++ over C, I get some overhead, but it's worth it as long as it's not runtime critical application.)
if I wanted to take it to extreme i could have use pyQt (which is even more fun to program, but even less efficient).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.