Forum > Linux

GTK or QT?

<< < (2/6) > >>

Warfley:
You shouldn't use gtk or qt on windows but rather windows forms and on MacOs GTK2 is an absolute pain, but i think QT5 works okish, but here cocoa is the way to go.

On Linux the decision is rather simple. GTK2 is officially considered EOL (end of life) by their developers and there will not be any more patches. It is removed from more and more platforms as default system. With respect to QT, while QT6 was also rolled out last year, QT5 is still considered live and, while the official QT team only provides LTS for commercial customers, the KDE Team publishes regular updates and fixes to QT5. Also as the main platform for KDE, it will be shipped with all KDE platforms for the next few years.

So the decision is pretty simple use QT5, especially if you consider developing commercial software, because using EOL libraries is irresponsible and you can be held liable to any bugs or security issues arising from this decision (as, unless otherwise necessary and/or negotiated with the client, you must provide a service according to the state of the art).

bitman:
Thanks everyone for their feedback.


--- Quote from: dbannon on September 05, 2021, 12:16:53 pm ---If you mean which of GTK2, Qt5 is easier to translate to Windows or mac, neither,...

--- End quote ---

Yes, that's what I meant...

I will follow your advice and go with QT, while regularly recompiling for GTK (as sanity check) and more seldomly for Windows (which is the one I've access to); will have to wait until a beta version to try on Mac though ;(


--- Quote from: zeljko on September 04, 2021, 09:34:29 am ---I'm using Qt on Linux, Windows and Mac for years and it suits all my needs.

--- End quote ---

I wasn't aware that QT could be used on Windows and Mac too... I mean, I know it is crossplatform, but didn't know could also be used via Lazarus in those platforms...

I feel attracted to the idea however, of using QT as engine for all platforms, mainly for its theming capabilities... I know I cannot use mac UI theme on Win nor Linux, but what about the "Fusion" theme (QT own theme)??? could my app use it across all platforms?  Well, I ask this mostly for aesthetic reasons, to achieve an uniform look across platforms; but seeing other people mentioning setting up QT for mac may be hassle, it might not be worth the effort.

Warfley:

--- Quote from: bitman on September 07, 2021, 11:00:05 pm ---I feel attracted to the idea however, of using QT as engine for all platforms, mainly for its theming capabilities... I know I cannot use mac UI theme on Win nor Linux, but what about the "Fusion" theme (QT own theme)??? could my app use it across all platforms?  Well, I ask this mostly for aesthetic reasons, to achieve an uniform look across platforms; but seeing other people mentioning setting up QT for mac may be hassle, it might not be worth the effort.

--- End quote ---

I don't think that a uniform design is a good idea. It is generally said that users preferr if all the applications fit into the system style. This is why Java introduced native style GUIs (before that Java had a unified look on all platforms) or why Android pushed for a more uniform style accross different apps.
I don't really agree with this sentiment, because as software like VSCode or Final Cut have shown, people also like different looking apps, if they are well designed. But personally, I am not a designer, I am terrible at graphical UI design and the default style will always be accepted, so I rather go with that than trying to make a unique look that must be very good to be accepted.

I think the worst thing is if you have a dark-themed system (like I have under Linux) and then there is one app thats not dark themed. Every time I open such an app it is kinda blinding. So personally I think sticking to the default theme a safe option that will always produce a good result

dbannon:

--- Quote from: bitman on September 07, 2021, 11:00:05 pm ---Thanks everyone for their feedback.
....
I will follow your advice and go with QT, while regularly recompiling for GTK (as sanity check) and more seldomly for Windows (which is the one I've access to); will have to wait until a beta version to try on Mac though ;(

--- End quote ---

Sorry but I would suggest the other way around, you do need to regularly check under Windows, too easy for a set of issues to build up. And a set is much harder to deal with.  And the switch between Qt and GTK2 on Linux is a non-event. The Mac is an issue ("Its Unix Captain, but not as we know it") but maybe your approach might be to treat that as an extra project. Most things will work fine but there will be issues....

And, yes I agree with the other posters who say that you should use native widget sets on both Windows and Mac. Qt  can be made work there but end users will not appreciate the slightly different look and feel and getting the extra libraries installed is an unnecessary complication with no gain.
Davo

cappe:

--- Quote from: zeljko on September 04, 2021, 09:34:29 am ---I'm using Qt on Linux, Windows and Mac for years and it suits all my needs. You must decide on your own what is better on Linux for you, gtk2 is usually installed by default, but gtk2 won't be default installation for so long time since it's pretty old lib now. Gtk3 widgetset isn't finished, on the other side we have Qt and Qt5 WS - stable and continuosly developed and maintaned. My recommendation is definitelly Qt5 if you start fresh project and need stable WS since all distros now pack libQt5Pas C library which is needed by Qt5 WS.

--- End quote ---

An information, is qt ws by chance like broadway? Yes, I'm interested, is there any example to start with?

Thank you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version