Hi..
I am using Ubuntu v8.0,And i installed qtcreator,
in this i need to execute one .cpp file which is at in home directory..
i need to execute that file when i click the pushbutton..
so go through with QProcess..Im Attaching those files..
its build without error..when i debug it its showing that
"Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing."
so installed some library files likefglrx-source,fglrx-driver.
still same problem.plz provide some info regard this........
--
Mahesh <[email protected]>
CMC PVT LTD
______________________________________________________________________________
DISCLAIMER
The information contained in this e-mail message and/or attachments to it may
contain confidential or privileged information. If you are not the intended
recipient, any dissemination, use, review, distribution, printing or copying
of the information contained in this e-mail message and/or attachments to it
are strictly prohibited. If you have received this communication in error,
please notify us by reply e-mail or directly to [email protected] or
telephone and immediately and permanently delete the message and any
attachments. Thank you.
______________________________________________________________________________
This email has been scrubbed for your protection by SecureMX.
For more information visit http://securemx.in
______________________________________________________________________________
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QProcess>
#include <QString>
#include <QStringList>
#include <QtGui>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_ClickMe_clicked()
{
QProcess *proc = new QProcess;
QString binary = "g++";
QStringList arguments;
arguments <<"-o"<<"executable"<<"/home/mahesh/mahesh.cpp";
//connect(proc, SIGNAL(readyReadStdout()), this, SLOT(readProcessStdout()));
proc->execute(binary,arguments);
proc->waitForFinished();
QString error(proc->readAll());
QTextBrowser *TextBrowser=new QTextBrowser;
TextBrowser->setText(error);
}
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
private slots:
void on_pushButton_ClickMe_clicked();
};
#endif // MAINWINDOW_H
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest