O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – Creating a project with a Graphics View

Let's put all these components together in a minimalistic project. From the Welcome screen, click on the New Project button and select Qt Widgets Application again. Name the project graphics_view_demo, select the correct kit, uncheck the Generate form checkbox, and finish the wizard. We don't actually need the MainWindow class that was generated for us, so let's delete it from the project. In the project tree, locate mainwindow.h and select Remove file in the context menu. Enable the Delete file permanently checkbox and click on OK. This will result in deleting the mainwindow.h file from the disk and removing its name from the graphics_view_demo.pro file. If the file was open in Qt ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required