Hi all,
I have a QWidget with this style sheet:
background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(0, 0, 0), stop: 1 rgb(255, 255, 255));
How can I get the color in each point?
Regards.
Hi all,
I have a QWidget with this style sheet:
background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(0, 0, 0), stop: 1 rgb(255, 255, 255));
How can I get the color in each point?
Regards.
First Google hit for 'qwidget get pixel' is http://www.qtcentre.org/threads/3096...w-mouse-Cursor and should show you how.
I have used this code and seems that works fine:
Qt Code:
To copy to clipboard, switch view to plain text mode
Thanks!
Bookmarks