View Single Post
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#5
@Copernicus Thanks for the ideas.

Seems changing to this did the trick (pinched from Theme Customizer)
No idea why the first version didn't work.

Code:
void MainWindow::on_pushButtonStart_clicked()
{
    QProcess *process;
            process = new QProcess( this );
            process->start("sh opt/tenminutecore/script/tenminutecore.sh");
}

void MainWindow::on_pushButtonStop_clicked()
{
    QProcess *process;
            process = new QProcess( this );
            process->start("sh opt/tenminutecore/script/kill.sh");
            process->waitForFinished();
}
Just require some testers now.

Finally what's the best way to go about implementing portrait support?
Ideally I just require the stop button to move below the start in portrait.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post: