[Gambas-bugtracker] Bug #1454: The gb.gui.qt switcher doesn't allow gb.gui.qt.ext

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Nov 16 02:08:34 CET 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1454&from=L21haW4-

Comment #1 by Benoît MINISINI:

As a workaround, you can load the component at runtime, declare the TextEdit class explicitely, and create it from code (you won't have autocompletion by the way).

' At startup

If Component.IsLoaded("gb.qt4") Then
  Component.Load("gb.qt4.ext")
Else If Component.IsLoaded("gb.qt5") Then
  Component.Load("gb.qt5.ext")
Else
  Quit
Endif

' In your form

Class TextEdit
...
MyTextEdit = new TextEdit(me)




More information about the Bugtracker mailing list