Add QGraphicView Objects
[groove] / bottombar.cpp
index 9ae4ea5..09faf6c 100644 (file)
@@ -6,6 +6,14 @@ bottomBar::bottomBar(QWidget *parent) :
     ui(new Ui::bottomBar)
 {
     ui->setupUi(this);
+    QRect screenGeometry = QApplication::desktop()->screenGeometry();
+    QGraphicsScene *main = new QGraphicsScene(0,0,screenGeometry.width(),15);
+    ui->graphicsView->setScene(main);
+    ui->graphicsView->setSceneRect(0,0,screenGeometry.width(),15);
+    ui->graphicsView->setTransformationAnchor(QGraphicsView::NoAnchor);
+    main->setBackgroundBrush(this->palette().window());
+    main->setSceneRect(0,0,screenGeometry.width(),15);
+    main->addRect(0,0,screenGeometry.width()/2,15,QPen(Qt::white),QBrush(Qt::white));
 }
 
 bottomBar::~bottomBar()