Custom Widgets

We have so far been using only ready-made widgets for the user interface, which resulted in the crude approach of using buttons for a tic-tac-toe game. In this chapter, you will learn about much of what Qt has to offer with regard to custom widgets. This will let you implement your own painting and event handling, incorporating content that is entirely customized.

The main topics covered in this chapter are as follows:

  • Working with QPainter
  • Creating custom widgets
  • Image handling
  • Implementing a chess game

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.