void DLP3Dprinter::saveprogram()
{
settings.beginGroup("MainWindow");
settings.setValue("size", size());
settings.setValue("pos", pos());
settings.setValue("Resolution",ui->StepResolutionText->toPlainText());
settings.endGroup();
}
void DLP3Dprinter::readsettings()
{
settings.beginGroup("MainWindow");
resize
(settings.
value("size",
QSize(400,
400)).
toSize());
move
(settings.
value("pos",
QPoint(200,
200)).
toPoint());
//settings.setUserData("Resolution",ui->StepResolutionText->toPlainText());
//ui->StepResolutionText->setPlainText(QApplication::translate("DLP3Dprinter"," ?????",0));
// ui->StepResolutionText->setPlainText(settings.value("Resolution"));
settings.endGroup();
void DLP3Dprinter::saveprogram()
{
QSettings settings("Moose Soft", "Clipper");
settings.beginGroup("MainWindow");
settings.setValue("size", size());
settings.setValue("pos", pos());
settings.setValue("Resolution",ui->StepResolutionText->toPlainText());
settings.endGroup();
}
void DLP3Dprinter::readsettings()
{
QSettings settings("Moose Soft", "Clipper");
settings.beginGroup("MainWindow");
resize(settings.value("size", QSize(400, 400)).toSize());
move(settings.value("pos", QPoint(200, 200)).toPoint());
//settings.setUserData("Resolution",ui->StepResolutionText->toPlainText());
//ui->StepResolutionText->setPlainText(QApplication::translate("DLP3Dprinter"," ?????",0));
// ui->StepResolutionText->setPlainText(settings.value("Resolution"));
settings.endGroup();
To copy to clipboard, switch view to plain text mode
Bookmarks