[HbQt] QApplication:quit()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HbQt] QApplication:quit()

Barrimbhal
This post has NOT been accepted by the mailing list yet.
Colleagues, greetings!

In the code down...

*--------------------------
#include "hbqtgui.ch"

procedure main
local oApp, oWnd, n1:=nil

oApp:=QApplication()
n1:=retValor(1)

    if n1 >= 2
        oApp:quit()
    endif

oWnd:=QMainWindow()
    oWnd:setWindowTitle("teste I")
    oWnd:setFixedSize(640,480)
oWnd:show()

oApp:exec()
return
*-----------------------

How it will force the close before entering in the principal window?
Grateful! :^)