You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
253 B
9 lines
253 B
15 years ago
|
var h = new QHBox(this);
|
||
|
var dt = new QTimeEdit(h, 'tc');
|
||
|
var n = new Date(); // now
|
||
|
|
||
|
dt.time = n; // set the control to now
|
||
|
var t = dt.time; // get the time out
|
||
|
|
||
|
println( t.getHours().toString()+':'+t.getMinutes().toString()); // always puts out 23:59
|