QFile file(settings.value("/Settings/pathForm","").toString()+"/"+filename); QFormBuilder/*QUiLoader*/ loader; file.open(QFile::ReadOnly); QWidget *formWidget = loader.load(&file, this); QFormBuilder builder; QFile file1("c:\myWidget.ui"); file1.open(QFile::WriteOnly); builder.save(&file1,formWidget); file1.close(); file.close();
C++ (Qt)QFile::copy("pathForm/outwarehouse.ui", "pathForm/myWidget.ui");
C++ (Qt)QFile file("pathForm/myWidget.ui");file.open(QIODevice::ReadWrite);QWidget *formWidget = QUiLoader().load(&file, this);