Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
QColor is a Qt class for a color.
The code below, adapted from Qt example 1: moving a sprite over a background in 2D, shows how to set the color lime to the color made transparent.
#include <QGraphicsPixmapItem> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.