Qt - Dialog gadgets cut off on Panel

Post bugreports for the Linux version here
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Qt - Dialog gadgets cut off on Panel

Post by wombats »

On Ubuntu with the Qt Subsystem:

Image

On Windows:

Image

Code: Select all

#Dialog = 0
#Xml = 0

XML$ = "<window id='#PB_Any' name='test' text='test' minwidth='auto' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
       "  <panel>" +
       "    <tab text='First tab'>" +
       "      <vbox expand='item:2'>" +
       "        <string text='Hello, World.' width='200'/>" +
       "      </vbox>" +
       "    </tab>" +
       "    <tab text='Second tab'>" +
       "    </tab>" +
       "  </panel>" +
       "</window>"

If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
  If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test")
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf
EndIf
vwidmer
Enthusiast
Enthusiast
Posts: 282
Joined: Mon Jan 20, 2014 6:32 pm

Re: Qt - Dialog gadgets cut off on Panel

Post by vwidmer »

Yes can replicate same issue with Manjaro/Arch linux as well.
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Post Reply