Advertisement
oquidave

Qt widgets

Aug 20th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. bioDisplay.cpp
  2. #include "biodisplay.h"
  3. #include "ui_biodisplay.h"
  4.  
  5. bioDisplay::bioDisplay(QWidget *parent) :
  6.     QWidget(parent),
  7.     ui(new Ui::bioDisplay)
  8. {
  9.     ui->setupUi(this);
  10. }
  11.  
  12. bioDisplay::~bioDisplay()
  13. {
  14.     delete ui;
  15. }
  16.  
  17.  
  18. QLabel* getNameOjb(){
  19.     Ui_bioDisplay* bd = new Ui_bioDisplay();
  20.     return bd->nameDisplay;
  21.  
  22. }
  23.  
  24.  
  25. bioDisplay.h
  26. #ifndef BIODISPLAY_H
  27. #define BIODISPLAY_H
  28.  
  29. #include <QWidget>
  30.  
  31. namespace Ui {
  32.     class bioDisplay;
  33. }
  34.  
  35. class bioDisplay : public QWidget
  36. {
  37.     Q_OBJECT
  38.  
  39. public:
  40.     explicit bioDisplay(QWidget *parent = 0);
  41.     ~bioDisplay();
  42.     QLabel* getNameOjb();
  43.  
  44.  
  45. private:
  46.     Ui::bioDisplay *ui;
  47. };
  48.  
  49. #endif // BIODISPLAY_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement