5.73 QT StringGadgets do not draw border

Post bugreports for the Linux version here
User avatar
Kukulkan
Addict
Addict
Posts: 1261
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

5.73 QT StringGadgets do not draw border

Post by Kukulkan »

Using PB 5.73 with QT subsystem, many gadgets drawing a border around its input, but the StringGadget does not. SO the look is inconsistent:

Code: Select all

EnableExplicit

If OpenWindow(0, 0, 0, 520, 250, "Gadget Border Test ", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
  
  StringGadget(0, 10, 40,  500, 25, "")
  ; QtScript(~"gadget(0).styleSheet=\"border: 1px solid #aaaaaa;\"") ; need to do this to get a border
  
  ComboBoxGadget(3, 10, 130, 500, 25)
  EditorGadget(4, 10, 160, 500, 25)
  ListViewGadget(5, 10, 190, 500, 25)
  
  Repeat
    Define Event = WaitWindowEvent()
   
  Until Event = #PB_Event_CloseWindow
EndIf
Result with QT:
Image

Result with GTK:
Image

You can get a border (but not respecting OS settings) like this:

Code: Select all

QtScript(~"gadget(0).styleSheet=\"border: 1px solid #aaaaaa;\"")