Qt GUI Programming

This chapter will help you learn how to use Qt to develop applications with a graphical user interface using the Qt Creator IDE. We will get familiar with the core Qt functionality, widgets, layouts, and the signals and slots mechanism that we will later use to create complex systems such as games. We will also cover the various actions and resource systems of Qt. By the end of this chapter, you will be able to write your own programs that communicate with the user through windows and widgets.

The main topics covered in this chapter are as listed:

  • Windows and widgets
  • Creating a Qt Widgets project and implementing a tic-tac-toe game
  • Creating widgets with or without the visual form editor
  • Using layouts to automatically position widgets
  • Creating and using signals and slots
  • Using the Qt resource system