hello,

So I explain, I did several tests to display a random value in a LineEdit Here is what the window looks like: (I'm with QMainWindow)
Capture.PNG

Then the .cpp and .h:

.h
Qt Code:
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5.  
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9.  
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13.  
  14. public:
  15. explicit MainWindow(QWidget *parent = 0);
  16. ~MainWindow();
  17.  
  18. private:
  19. Ui::MainWindow *ui;
  20.  
  21. private slots:
  22. void Statut_Changed(int value);
  23. };
  24.  
  25. #endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode 


.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3.  
  4. MainWindow::MainWindow(QWidget *parent) :
  5. QMainWindow(parent),
  6. ui(new Ui::MainWindow)
  7. {
  8. ui->setupUi(this);
  9. }
  10.  
  11. MainWindow::~MainWindow()
  12. {
  13. delete ui;
  14. }
  15.  
  16. void MainWindow::Statut_Changed(int value)
  17. {
  18. value = 50;
  19. ui->lineEdit->setText(value);
  20. }
To copy to clipboard, switch view to plain text mode 

I would like to display the desired value in the LineEdit and once done, create a connection between QwtTHermo and LineEdit.
For example, by setting the value 50, I would like this value to be displayed in the lineEdit and also displayed in QwtThermo

Do you have an idea ?
Already to display the value in lineEdit

Thank you for your help