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.
18 lines
330 B
18 lines
330 B
15 years ago
|
#!/usr/bin/env kjscmd
|
||
|
|
||
|
var dateTime = new QDateTimeEdit(this);
|
||
|
dateTime.connect( dateTime, 'valueChanged(const QDateTime&)', this, 'changed');
|
||
|
|
||
|
var jsDate = new Date();
|
||
|
dateTime.setDateTime( jsDate );
|
||
|
|
||
|
dateTime.show();
|
||
|
application.exec();
|
||
|
|
||
|
function changed( time )
|
||
|
{
|
||
|
println( time.toString() );
|
||
|
println( jsDate.toString() );
|
||
|
}
|
||
|
|