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

Pop quiz

Q1. Which class should you use to load a JPEG image from a file and change a few pixels in it?

  1. QImage
  2. QPixmap
  3. QIcon

Q2. Which function can be used to schedule a repaint of the widget?

  1. paintEvent()
  2. update()
  3. show()

Q3. Which function can be used to change the color of the outline drawn by QPainter?

  1. setColor()
  2. setBrush()
  3. setPen()

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