int main(int argc, char *argv[]){ QImage img; QApplication a(argc, argv); showScanDialog w; int rc; rc = img.load("./1.jpg"); w.setImage(img); w.setFileName("./1.jpg"); w.show(); return a.exec();}
C++ (Qt)qDebug() << QDir(".").absolutePath();