Symbian On-Device Debugging
Hello QTs,
i am absolutley new to QT but have some C++ experience.
The problem is:
I installed QT 4.7 and tested succesfully some simple forms on the Emulator.
So far, so good.
Next I installed the qt*.sis files on my E72 to check it on the real thing.
It did'nt work out.
Then I compiled an empty form and it worked on the device !
Finally a pushbutton was added to the form, but app the terminated immediately.
I never give up: I deleted the the text from the pushbutton, compiled again and
the "app" runs on the E72.
Why is the app/form terminating withn the labeled pushbutton ?
Thanks in advance.
Re: Symbian On-Device Debugging
May be some error..
Can you show the code ?
Re: Symbian On-Device Debugging
Thanks for your swift response.
There's no code beside the QT generated.
It's just a simple form with a pushbutton.
I added no extra code to keep it simple.
I guess it can be only a setup problem. Did reinstall, but to no avail.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
#if defined(Q_WS_S60)
w.showMaximized();
#else
w.show();
#endif
return a.exec();
}
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
Re: Symbian On-Device Debugging
Hi Granty,
Qt 4.7 is not yet supported for Symbian, use 4.6.3 for now....
See HERE for further information about 4.7 and Symbian.
Cheers,
Jon
Re: Symbian On-Device Debugging
Thank you Jon !
I'm beginning to understand.:rolleyes:
I wonder why there's no warning message which pops up after one's selected Symbian as the target device.:mad:
It's not easy to set up good old 4.6.3 since many download links are broken, e.g. "Open C++ Plug-In". Too bad.
Cheers,
Granty