View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#2
Originally Posted by Dr.Heyde View Post
Hi there,

i've written a qt app with the QT Creator...just a simple one.
For testing only, i've add a combobox and a "Apply" Button.

The Button should run a shell script, which should do something.
(with Variable from the combobox).

My Problem is, that nothing happend, when i push the Button

The part of the Button looks so:

Code:
void MainWindow::on_applypush_clicked()
{
    QStringList combo;
    combo << ui->comboBox->currentText();
    QProcess *process = new QProcess(this);
    process->start("./sbin/xicon", combo);
}
Could anyone help me, with my Problem ?
Is your script executable (chmod a+x /sbin/xicon)?
You can also leave out the . -mark from QT-code.

And one more thing, you are running your QT-app as user, not as root are you?
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 

The Following User Says Thank You to d-iivil For This Useful Post: