How to get the system background color of a window in QT?

Linux specific forum
Martin Verlaan
Enthusiast
Enthusiast
Posts: 134
Joined: Sun Apr 01, 2018 11:26 am
Location: Netherlands
Contact:

How to get the system background color of a window in QT?

Post by Martin Verlaan »

In GTK this works fine to get the system background color of a window

Code: Select all

StartDrawing(WindowOutput(0))
SystemBackgroundColor = Point(0, 0)
StopDrawing() 
But it fails in QT. Does anyone know an alternative way for this subsystem?