Hi to everyone,
I'm doing one gui using Qt3. First I did the gui with QtDesigner and then, using uic command I created the .h and .cpp files. Now I'm using KDevelop as IDE.
The GUI is really easy, It has only one menu with 4 buttons and one textEdit area where It has to appear all the results of the actions of every button.
I did like this:
I have three files: main.cpp, btscanning.h and btscanning.cpp. Everything compiles perfectly.
In .cpp I have:
the main function:

BTScanning::BTScanning( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
te_results = new QTextEdit( this, "te_results" );
te_results->setGeometry( QRect( 250, 180, 341, 281 ) );

pb_scan = new QPushButton( Menu, "pb_scan" );
pb_scan->setGeometry( QRect( 40, 40, 112, 24 ) );

// signals and slots connections
connect( pb_scan, SIGNAL( clicked() ), this, SLOT( scan() ) );
}
these are the important ones, of course I have more things inside this function.

and then scan() function:
void BTScanning::scan()
{
QProcess *process = new QProcess(this);
QByteArray exit;

process->addArgument("hcitool scan");

exit = process->readStdout();
if(!process->start()){
te_results->insertParagraph(QString("the process is not running"),-1);
}
else{
te_results->insertParagraph(QString(exit),-1);
}
te_expl->insertParagraph(QString("The function scanns an area looking for some blueetoth devices that are connected."),-1);

}

and It appears in te_results "the process is not running".
I've been trying a lot of things but allways the same error. The process is not running and I don't know why.Anybody can help me please?
Thanks a lot.