rendered paste body // Initialize UI
setupUi(this);
QGraphicsScene scene;
QGraphicsPixmapItem *welcomePic = new QGraphicsPixmapItem(QIcon(":/welcome/tux-viking_small.png").pixmap(64,64) );
scene.setSceneRect(QRectF(0, 0, 240, 320));
scene.addText("Instant Messenger for Life");
scene.addItem( welcomePic);
graphicsView->setScene(&scene);
// a blue background
scene.setBackgroundBrush(Qt::blue);
// a gradient background
QRadialGradient gradient(0, 0, 10);
gradient.setSpread(QGradient::RepeatSpread);
scene.setBackgroundBrush(gradient);
// a white semi-transparent foreground
scene.setForegroundBrush(QColor(255, 255, 255, 127));
// a grid foreground
scene.setForegroundBrush(QBrush(Qt::lightGray, Qt::CrossPattern));
graphicsView->show();