I create a new widget to display roadmaps. there is a way to add this widget to the UI designer. For the moment, I have just added direclty in my code.

Qt Code:
  1. #ifndef QMAPS_H
  2. #define QMAPS_H
  3.  
  4. #include <QWidget>
  5. #include <QtGui>
  6.  
  7. class QMaps : public QWidget{
  8. Q_OBJECT
  9.  
  10. public:
  11. QMaps(QWidget *parent = 0);
  12. QSize sizeHint() const;
  13. QSize minimumSizeHint() const;
  14.  
  15. protected:
  16. void paintEvent(QPaintEvent *event);
  17.  
  18. private:
  19.  
  20. };
  21.  
  22. #endif // QMAPS_H
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. MainWindow::MainWindow(QWidget *parent)
  2. : QMainWindow(parent), ui(new Ui::MainWindowClass)
  3. {
  4. ui->setupUi(this);
  5. qout=new QDebugStream(std::cout, ui->textBox);
  6. qmaps=new QMaps(this);
  7. qmaps->show();
  8. }
To copy to clipboard, switch view to plain text mode