public void first() {
    // ! [0]
    QGraphicsScene scene = new QGraphicsScene();
    scene.addText("Hello, world!");

    QGraphicsView view = new QGraphicsView(scene);
    view.show();
    // ! [0]
  }