Recent

Author Topic: GTK3 is now the default widgetset on Linux  (Read 1832 times)

robert rozee

  • Sr. Member
  • ****
  • Posts: 400
Re: GTK3 is now the default widgetset on Linux
« Reply #15 on: July 06, 2026, 10:44:22 pm »
[...] Both, because Thaddy talked about the usual dynamic linking case due to linking against GTK3. I talked about the static linking case due to your interest in the statically linked libqt6pas. And for the later case distributing a single binary without source would be against the LGPL.

but only "against the LGPL" wrt to the license of libqtXpas? and the copyright holders for libqt6pas (and 5) are Jan Van Hijfte and Željan Rikalo. ie, "Den" (aka "Den Jean") and our very own zeljko.

(as an aside, could those two copyright holders not authorise relaxing the license?)

However as you pointed out, there's the linking exception as part of the libqtXpas library licenses (and I did in fact miss that :-[ ). In that case it's indeed not a problem to statically link against libqtXpas.

so is everyone now happy in saying that statically link against libqtXpas is OK? in which case, can someone please post the necessary steps to achieve this? i recall seeing mention on a forum post (that i have zero hope of ever finding again) that the procedure is relatively simple... it would be helpful if the option to do so were even added to the next release of Lazarus   :)

btw, this negates a few days of work i've nearly finished, devising a method to create an ELF binary that has built into the ability to shed from itself a statically linked library!


cheers,
rob   :-)
« Last Edit: July 07, 2026, 06:09:55 am by robert rozee »

munair

  • Hero Member
  • *****
  • Posts: 888
  • software developer at SSGEOS
    • Solpage
Re: GTK3 is now the default widgetset on Linux
« Reply #16 on: July 07, 2026, 09:06:31 pm »
Why GTK3, and not some QT ?
Perhaps for those preferring a GTK based interface like XFCE over Qt (KDE) next to licensing issues? I for one never found my way with Qt based desktops. I've been coding on XFCE desktops with Lazarus for years and wouldn't want it any other way. Still compiling against GTK2 here BTW  :D next to Windows.
« Last Edit: July 07, 2026, 09:10:53 pm by munair »
It's only logical.

Handoko

  • Hero Member
  • *****
  • Posts: 5557
  • My goal: build my own game engine using Lazarus
Re: GTK3 is now the default widgetset on Linux
« Reply #17 on: July 08, 2026, 03:32:46 am »
I ever wanted to try and use Qt. I think Qt interface looks cute in my eyes. But some research shows it is less 'friendly' for commercial projects.

cdbc

  • Hero Member
  • *****
  • Posts: 2850
    • http://www.cdbc.dk
Re: GTK3 is now the default widgetset on Linux
« Reply #18 on: July 08, 2026, 01:02:21 pm »
Hi Handoko
Why don't you swing by Graeme's fpGUI
It works _really_ well and Graeme has added Qt-like 'Fusion-styles', light and dark, which look cool and very much like "The Real McCoy"...
...And you'll be surprised at how easy it is to work with =^

Btw. I think the new Gtk3 interface looks great, good on you @zeljko

Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thaddy

  • Hero Member
  • *****
  • Posts: 19387
  • Glad to be alive.
Re: GTK3 is now the default widgetset on Linux
« Reply #19 on: July 08, 2026, 01:39:31 pm »
Benny,  he wrote:
But some research shows it is less 'friendly' for commercial projects.
And that is a fact, not opinion. It does not value its worth as a widgetset, it values its license issues.
« Last Edit: July 08, 2026, 01:41:32 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

cdbc

  • Hero Member
  • *****
  • Posts: 2850
    • http://www.cdbc.dk
Re: GTK3 is now the default widgetset on Linux
« Reply #20 on: July 08, 2026, 01:49:40 pm »
Hi Thaddy
I know. What I meant was, he'd have no license-issues with fpGUI and still get the same(ish) gui...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

robert rozee

  • Sr. Member
  • ****
  • Posts: 400
Re: GTK3 is now the default widgetset on Linux
« Reply #21 on: July 08, 2026, 02:38:14 pm »
the trouble with fpGUI et al is that (as far as i can determine) when using them you can not use the visual form designer of the Lazarus IDE - instead, every component you use in an application needs to be specified and placed using pascal code.

if i could load up my existing GUI projects, click on a 'use fpGUI' button in the IDE and just recompile, then i would be in like Flynn!

please correct me if i am wrong.


cheers,
rob  :-)

cdbc

  • Hero Member
  • *****
  • Posts: 2850
    • http://www.cdbc.dk
Re: GTK3 is now the default widgetset on Linux
« Reply #22 on: July 08, 2026, 02:54:13 pm »
Hi Robert
Well, you're mostly right, there is a 'uidesigner' for fpGUI, but it's a far cry from -- Wupti & Recompile...  :D
I must admit, that today I use both fpGUI and QT6 and now that I'm used to it, I like them equally much \o/\ö/\o/
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

big_M

  • Full Member
  • ***
  • Posts: 106
Re: GTK3 is now the default widgetset on Linux
« Reply #23 on: July 08, 2026, 04:47:45 pm »
@Marcov
Not many Qt users actually read their license requirements:
https://www.qt.io/development/qt-framework/qt-licensing
Note there that several Qt components from Qt itself, not Lazarus, are - when unlicensed - GPL, not LGPL. GPL is very restrictive and needs all sourcecode to be publicly available and that includes third-party sourcecode that is used which may have a different license.....
(Blame Richard Stallman)

True, the licensing of qt is a bit more tricky, but one has to say that the texts on the qt webpage are also highly misleading, also on the page you posted. Their core libraries are LGPL. Of course there is the trap that a dev would use one of the GPL libs, but the likelihood of this happening by mistake using lazarus is very low, since AFAIK qt6pas only links to LGPL libs.

bonmario

  • Sr. Member
  • ****
  • Posts: 348
Re: GTK3 is now the default widgetset on Linux
« Reply #24 on: July 09, 2026, 07:41:50 am »
Hi, i'm working in Ubuntu with Cinnamon.
With GTK3, and TrayIcon, rigth click works, but Left click no. Right-clicking and left-clicking produce the same result.
I've fond this on wiki:
Code: Pascal  [Select][+][-]
  1. Trunk from October 2019 has a working GTK3 TrayIcon based, again, on the AppIndicator. The advice above relating to installing LibAppindicator3 applies to GTK3 as well. As the only way you can get a TrayIcon under GTK3 is the an AppIndicator, you can only use it to display a popup menu, don't expect to get a working OnClick event.

Since this is from 2019, is this still the case? Is the OnClick event not working?

Thanks, Mario

Thaddy

  • Hero Member
  • *****
  • Posts: 19387
  • Glad to be alive.
Re: GTK3 is now the default widgetset on Linux
« Reply #25 on: July 09, 2026, 04:34:26 pm »
Nope: trunk from 2019 is basically useless now. You need trunk from today or very recent.
Trunk versions need to be compiled at least once a week. I compile it daily if there are any commits.

Wayland was not really an issue in 2019.
« Last Edit: July 09, 2026, 04:36:05 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

bonmario

  • Sr. Member
  • ****
  • Posts: 348
Re: GTK3 is now the default widgetset on Linux
« Reply #26 on: July 09, 2026, 07:48:59 pm »
Nope: trunk from 2019 is basically useless now. You need trunk from today or very recent.
Trunk versions need to be compiled at least once a week. I compile it daily if there are any commits.

Wayland was not really an issue in 2019.

Sorry for my poor English, I obviously didn't explain myself well.
What I wrote before referred to Lazarus updated with trunk from today, with GTK3.

 

TinyPortal © 2005-2018