[Gambas-user] Making an app gtk/qt switchable

Bruce Steers bsteers4 at gmail.com
Sat Nov 14 20:34:01 CET 2020


Greetings all.
I'm trying to set an arg/option in my app to choose gui system.

I've added an arg --gui with options gtk gtk3 qt4 or qt5.

It has a Startup.module before FMain where the arg is read
then..
 Env["GB_GUI"] = "gb." & LCase(sGuiArg)

But it don't work :(

so i thought i could use Component.Load("gb." & LCase(sGuiArg))
which i guess i could if i could remove the default bg.gui component in the
IDE but i can't, gotta have one of them.
Loading the component gives a segmentation 11 fault.
And there does not seem to be a Component.Unload() option.

I'm out of ideas...
Is it even possible to do?
Cheers
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201114/7214bb55/attachment-0001.htm>


More information about the User mailing list