-
Notifications
You must be signed in to change notification settings - Fork 11
Session
kaos edited this page Mar 31, 2013
·
1 revision
This is the sample output from a QtErl interactive session.
Note: I am using the qte:t/0
fun to load the test.ui file and connect to the clicked() signal of the pushButton.
Erlang R15B03 (erts-5.9.3.1) [smp:8:8] [async-threads:0]
Eshell V5.9.3.1 (abort with ^G)
1> P=qte:t().
t: start = {ok,"MainWindow"}
t: connect = {ok,"pushButton","clicked"}
<0.33.0>
2> flush().
ok
qte: <0.31.0> ! {signal,pushButton,clicked}
3> qte:connect(P, "lineEdit", "textChanged(QString)").
{ok,"lineEdit","textChanged"}
qte: <0.31.0> ! {signal,lineEdit,{textChanged,["1"]}}
qte: <0.31.0> ! {signal,lineEdit,{textChanged,["12"]}}
qte: <0.31.0> ! {signal,lineEdit,{textChanged,["123"]}}
qte: <0.31.0> ! {signal,lineEdit,{textChanged,["1234"]}}
qte: <0.31.0> ! {signal,lineEdit,{textChanged,[[]]}}
qte: <0.31.0> ! {signal,pushButton,clicked}
4> flush().
Shell got {signal,pushButton,clicked}
Shell got {signal,lineEdit,{textChanged,["1"]}}
Shell got {signal,lineEdit,{textChanged,["12"]}}
Shell got {signal,lineEdit,{textChanged,["123"]}}
Shell got {signal,lineEdit,{textChanged,["1234"]}}
Shell got {signal,lineEdit,{textChanged,[[]]}}
Shell got {signal,pushButton,clicked}
ok