Using Ubuntu 18.04.4 LTS
Using PureBasic 5.72 b3
Using Subsystem 'qt', with a simple Calendar form
I get a PureBasic - Linker error MessageBox :
Code: Select all
/usr/bin/ld : ne peut trouver -lQt5Widgets
/usr/bin/ld : ne peut trouver -lQt5Gui
/usr/bin/ld : ne peut trouver -lQt5Core
collect2: error: ld returned 1 exit status
The simple code :
Code: Select all
Global Window_0
Global Calendar_0
Procedure OpenWindow_0(x = 0, y = 0, width = 290, height = 200)
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "Calendrier", #PB_Window_SystemMenu)
Calendar_0 = CalendarGadget(#PB_Any, 10, 10, 270, 180, 0)
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_CloseWindow
ProcedureReturn #False
Case #PB_Event_Menu
Select EventMenu()
EndSelect
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
ProcedureReturn #True
EndProcedure
OpenWindow_0(0,0)
If Window_0
Repeat
Until Window_0_Events(WaitWindowEvent(0)) = 0
EndIf