Advertisement
Guest User

layout

a guest
Apr 6th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include "interface.h"
  2. #include "lineadato.h"
  3. #include <QVBoxLayout>
  4. #include <QMessageBox>
  5. Interface::Interface(QAction* rem,QAction* agg,QAction* ok ,QAction* p,QAction* l,QAction* b,Valori* v,QWidget *parent):QWidget(parent),
  6.     val(v),add(agg),remove(rem),inserisci(ok),pie(p),bar(b),line(l)
  7. {
  8.     QVBoxLayout* layout=new QVBoxLayout();
  9.     QVBoxLayout* canvas=new QVBoxLayout();
  10.     QVBoxLayout* tabella=new QVBoxLayout();
  11.     table=new Table(val,this);
  12.     area=new Canvas(val,this);
  13.     canvas->addWidget(area);
  14.     tabella->addWidget(table);
  15.     layout->addLayout(canvas);
  16.     layout->addLayout(tabella);
  17.     setLayout(layout);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement