Short example that show use of all color types in qt. Dependent on your system settings Compilation and run (tested under linux): qmake && make && ./main