View Single Post
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#13
That the executable ended up in /opt/ereswapgui/bin/ereswapgui/ereswapgui is probably wrong, it should have been /opt/ereswapgui/bin/ereswapgui (the desktop item refers to the last, that's why it does not start pressing the program in the menu),

The buttons have probably hardcoded positions when they where created in QT creator. To avoid that you should place them in a grid, or redraw them depending on portrait or landscape position. I know a little QT/C++ coding, but my QT creator knowledge is even worse

About the QProcess error you get, perhaps it helps to replace:

Code:
void MainWindow::on_pushButtonFreswap_clicked()
{
    QProcess process;
        process.start("sh freeswap");
        process.waitForFinished();
}
with:

Code:
void MainWindow::on_pushButtonFreswap_clicked()
{
    QProcess *process;
    process = new QProcess( this );
    process->start("sh freeswap");
    process->waitForFinished();
}
The deb file I created was just see if it was generatable from QT Creator, which was new for me too. Best is that you give it a go yourself.
 

The Following 2 Users Say Thank You to ade For This Useful Post: