Do I need Qt applications for KDE?

Do all Qt applications require the installation of KDE? Is it enough if the Qt runtime is installed with GNOME? Can I make a Qt application look like a GTK application in GNOME? Can someone point me to an article that details the relationship between Qt, GTK, KDE, GNOME, X?

+7
linux qt gnome kde
source share
5 answers

When working under X, Qt applications and the window manager are X clients. They both interact with XServer to draw, get input, or control windows. XServer knows about the hardware and processes the drawing on a specific monitor, receives mouse input, etc.

You can run the Qt application without a desktop environment and even without a window manager (although you will not be able to move / resize the program). Window managers, etc. - These are ordinary ordinary X-programs that perform their own functionality, but only indirectly interact with each other. They are independent of another specific program.

The state of the windows (position, order, contents) is controlled by the X server and can be requested and changed by a program such as a window manager.

The window manager handles the size, location and design of windows. It accepts events when a window is created / modified so that it can do this. It draws a frame around the window and processes clicks on closing, maximizing, dragging the window, etc.

The Qt application draws inside the main window and handles mouse clicks and keystrokes inside the window.

Qt can contact the window manager by sending XEvents from the window (resize / move) or install WM Hints (dialog, important, non-resizable). They pass through XServer and will have no effect if the program does not listen to them.

+14
source share

I regularly run Qt applications on my Mac, and sometimes on Windows, and I'm absolutely sure that neither Mac nor a Windows PC has KDE installed (nor Gnome, for that matter). So, to your first question, the answer is "definitely not" :-).

+12
source share

Qt is just a UI library, it so happens that KDE is written to / with Qt.

You can write an application using Qt and run it with gnome installed if you have the Qt library installed.

Yes, you can make Qt applications look like gnome applications if they use a theme that the system uses. (I donโ€™t know how this is known at all) I am using several Qt UI-based applications written in python under ubuntu using gnome, and they make good use of this theme.

+8
source share

Well, the other way around. Historically, KDE (and now) was built on the Trolltech Qt C ++ platform. Qt C ++ is now cross-platform, making KDE adventures smoother for many platforms. So short: KDE depends on Qt :)

+6
source share

When developing a Qt application, one of the options you have is to include KDE widgets or libraries in the application. If you do this, you will need some KDE packages (on Linux) or libraries that will be installed on your target machine, as well as on Qt. I'm not sure if they are available on Windows or Mac, although there is some attempt to connect KDE to Windows by continuing.

+1
source share

All Articles