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 – Adding icons to the project

We will add icons to our Start new game and Quit actions. First, use your file manager to create a new subdirectory called icons in the project directory. Place two icon files in the icons directory. You can use icons from the files provided with the book.

Click on Add New... in the context menu of the tictactoe project and select Qt Resource File (located in Qt category). Name it resources, and finish the wizard. Qt Creator will add a new resources.qrc file to the project (it will be displayed under the Resources category in the project tree).

Locate the new resources.qrc file in the project tree of Qt Creator and choose Add Existing Files... in its context menu. Select both icons, and confirm ...

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