Hi
The window is shown BUT my button does'nt respond. My source is this:
Regards
Giovanni
#include "
hbqtgui.ch"
PROCEDURE Main()
LOCAL application,window,ui,file
application := QApplication()
file := QFile("sample.ui")
file:open(1)
ui := QUiLoader()
window := ui:load(file)
file:close()
window:q_pushButton:connect( "clicked()", { | |
window:move(100,100) } )
window:show()
application:exec()
application:quit()
RETURN
The UI file (sample.ui) is the following:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>215</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>80</x>
<y>70</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>PushButton</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>