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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.