Hi jiapei100!

I'm a newbie in Qt but I've read enough articles in order to efficiently remove scroll bars.

In my main class I have set the main window to occupy the whole screen as soon as the application start using the following code, mainWindow is my widget:

mainWindow.showFullScreen(); // in this case no scroll bars will appear because the app's window is already in full screen, no need to rebuild again and again

Then in my implementation file I have done this:

ui->graphicsView->setSceneRect(this->frameGeometry()); // set the scene's bounding rect to rect of mainwindow
ui->graphicsView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO ff);
ui->graphicsView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff );