Wine: QT? GTK?

Questions about Wine on Linux
Locked
Opako
Level 3
Level 3
Posts: 74
Joined: Mon Jun 08, 2020 9:23 am

Wine: QT? GTK?

Post by Opako »

Is wine a QT program or a GTK program? Or something other?
Thank you.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine: QT? GTK?

Post by dimesio »

Neither. Wine is written in C.
Opako
Level 3
Level 3
Posts: 74
Joined: Mon Jun 08, 2020 9:23 am

Re: Wine: QT? GTK?

Post by Opako »

Thank you. Do you trying to say, that the Graphical User Interface of wine is programmed in "C" from scratch?
jury
Level 2
Level 2
Posts: 37
Joined: Tue Feb 25, 2014 3:22 am

Re: Wine: QT? GTK?

Post by jury »

Wine is GUI-less ...
SetantaLP
Level 3
Level 3
Posts: 54
Joined: Mon Jul 31, 2017 3:55 am

Re: Wine: QT? GTK?

Post by SetantaLP »

Well, some parts of wine (like winecfg and the explorer) have a gui, and if you start a windows software that has a gui, you will see this gui too. So from a user POV I wouldn't call wine GUI-less, because there is something like a GUI.
From a technical POV that's a bit different, because if you look at the dependencies, you'll see that wine doesn't depend on a GUI-toolkit like QT or GTK. And since wine reimplements the API provided by the windows system and its libraries including the ones responsible for handling user input (like mouse clicks and key presses) and graphical output (like drawing windows), which work on a pretty low level, it makes a lot of sense to just use low level linux apis (like x window and glu) instead a user level toolkit that might be able to achieve the same things, but would probably have more overhead (because of the abstraction) and probably also some limitations. And besides that, you would most likely not be able to use a lot of stuff included in the toolkit, because it doesn't really help, when working low level.
madewokherd
Level 4
Level 4
Posts: 144
Joined: Mon Jun 02, 2008 5:03 pm

Re: Wine: QT? GTK?

Post by madewokherd »

Most of Wine is simply coded to the Win32 API, like normal Windows code. There is a windowing backend using X11 on Linux.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine: QT? GTK?

Post by Bamm »

Opako wrote: Mon Nov 23, 2020 11:41 am Thank you. Do you trying to say, that the Graphical User Interface of wine is programmed in "C" from scratch?
In a sense yes. Wine creates GUI components by calliing directly on the Linux kernel API than by using toolkits like QT or GTK.
Locked