rocessFinished() in mainwindow.cpp:29class MainWindow
{
...
private:
void processFinished(int code);
void MainWindow::processFinished(int code)
{
}
connect(progress, SIGNAL(finished(int, QString), this, SLOT(progressFinisshed(int));
class MainWindow
{
...
private:
void processFinished(int code);
void MainWindow::processFinished(int code)
{
}
connect(progress, SIGNAL(finished(int, QString), this, SLOT(progressFinisshed(int));
QProcess *process = new QProcess(this);
process->start("/sbin/launchblack", arguments);
QProcess::execute("/sbin/launchblack", arguments);
Thanks for the help so far again!
| The Following User Says Thank You to d-iivil For This Useful Post: | ||


Now that I have the app up and running it's time to start adding some features to it and first is this:void MainWindow::saveSettings() const {
QSettings sett("blackplastic-theme/config");
sett.setValue("font", text_of_combobox /* you now how to get that already */);
// Other values like that also
}
void MainWindow::loadSettings() {
QSettings sett("blackplastic-theme/config");
bool bOK;
QString font = sett.value("font", QVariant("")).toString();
// Other values likewise and set comboboxes to show values
}
| The Following User Says Thank You to TNiga For This Useful Post: | ||