try {
QTSession.open();
System.out.println ("QT version: " +
QTSession.getMajorVersion() +
"." +
QTSession.getMinorVersion());
System.out.println ("QTJ version: " +
QTBuild.getVersion() +
"." +
QTBuild.getSubVersion());
QTSession.close();
} catch (Exception e) {
e.printStackTrace();
}