Bonjour à tous j'aimerai de votre pat obtenir une aide précieuse qui me sera très utile pour mon mini-projet. En fait j'utilise QtCreator pour la programmation et j'ai intégré qwt. J'ai bien compilé (qwt et examples) et puis par la suite j'ai utilisé une simple application pour faire un test.
mais lorsque j'exécute après une compilation sans erreur, voici le message du système:
"This application has request a runtime to terminate it to an usual way".
voici le .pro
TARGET = SimpleAdressBook
TEMPLATE = app
SOURCES += main.cpp\
adressbook.cpp
HEADERS += adressbook.h\
FORMS += adressbook.ui
DEFINES += QT_DLL QWT_DLL
LIBS += -Lc:\qwt\lib -lqwt5
le main.cpp
#include <QtGui/QApplication>
#include "adressbook.h"
#include <Qwt/Qwt_thermo.h>
double Kelvin2Fahrenheit(double kelvin)
{
// see http://en.wikipedia.org/wiki/Kelvin
return 1.8*kelvin - 459.67;
}
int main(int argc, char *argv[])
{
const double minKelvin = 0.0;
const double maxKelvin = 500.0;
QApplication a(argc, argv);
QwtThermo t;
//AdressBook *adressBook = new AdressBook();
//adressBook->setFixedSize(640, 480);
//adressBook->show();
t.setRange(minKelvin, maxKelvin);
t.setScale(Kelvin2Fahrenheit(minKelvin), Kelvin2Fahrenheit(maxKelvin));
// set the value in Kelvin but the scale displays in Fahrenheit
//273.15 Kelvin = 0 Celsius = 32 Fahrenheit
t.setValue(273.15);
//a.setActiveWindow(&t);
t.show();
return a.exec();
}
mon objectif était de tester l'objet créeé avec QwtThermo.