Hello,
I have downloaded and installed qwt, I made a QwtThermo like this :
.pro
Capture2.PNG
Then .pro and .cpp below :
#-------------------------------------------------
#
# Project created by QtCreator 2018-02-07T17:08:47
#
#-------------------------------------------------
# QWT library
QT += core gui
INCLUDEPATH += /usr/local/qwt-6.1.2/include
LIBS += -L/usr/local/qwt-6.1.2/lib -lqwt
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = sans_titre
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
FORMS += widget.ui
#-------------------------------------------------
#
# Project created by QtCreator 2018-02-07T17:08:47
#
#-------------------------------------------------
# QWT library
QT += core gui
INCLUDEPATH += /usr/local/qwt-6.1.2/include
LIBS += -L/usr/local/qwt-6.1.2/lib -lqwt
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = sans_titre
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
FORMS += widget.ui
To copy to clipboard, switch view to plain text mode
.cpp
#include "widget.h"
#include "ui_widget.h"
ui(new Ui::Widget)
{
ui->setupUi(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::On_Slide_Changed(int value)
{
}
#include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::On_Slide_Changed(int value)
{
}
To copy to clipboard, switch view to plain text mode
But I have an error :
qwt_thermo.h : no such file or directory
Bookmarks