Output from ui->graphicsView->viewport->size() is QSize(98, 28) and the frame is about 200 x 400 px.