+void MainWindow::viewStatistics()
+{
+ QMainWindow *statWindow = new QMainWindow(this);
+
+ //QWidget *centralWidget = new QWidget(statWindow);
+
+ //setCentralWidget(centralWidget);
+
+
+ QString foo = "some longer text is needed here : 17";
+ QTextEdit *textEdit = new QTextEdit(foo);
+
+ QLabel *label = new QLabel;
+ label->setScaledContents(true);
+
+ QString text = "foo : bar";
+
+ text.append("Scores: 17");
+
+ label->setAlignment(Qt::AlignCenter);
+ label->setText(text);
+
+ QString title = "Statistics";
+ statWindow->setWindowTitle(title);
+
+ QVBoxLayout *layout = new QVBoxLayout;
+ //layout->addWidget(label);
+ layout->addWidget(textEdit);
+
+ //statWindow->setLayout(layout);
+
+ //setCentralWidget(statWindow);
+ statWindow->show();
+}
+