View Full Version : Stylesheet using CMYK
Daylyt2k19
13th May 2019, 18:24
Hi, I've managed to edit the background color using RGB.
background:rgb()
But how do you do it using CMYK? I've tried cmyk() and setCmyk.
ChristianEhrlicher
13th May 2019, 20:12
don't know what 'background' is but are you looking for https://doc.qt.io/qt-5/qcolor.html#getCmyk ?
Daylyt2k19
14th May 2019, 00:02
don't know what 'background' is but are you looking for https://doc.qt.io/qt-5/qcolor.html#getCmyk ?
Sprry I wasn’t clear enough. I meant the background color of the ui design. You can edit the stylesheet, and with that change the background color of your design. I managed to do that with RGB using the format from my OP. But when I do it with CMYK, it doesn’t work properly. According to my understating cmyk(255,0,0,0) should give a Cyan background and the same for magenta, yellow and key(black). But as I said, it doesn’t work.
ChristianEhrlicher
14th May 2019, 06:26
Qt CSS doesn't allow cmyk: https://doc.qt.io/qt-5/stylesheet-reference.html#brush
Daylyt2k19
14th May 2019, 10:30
Qt CSS doesn't allow cmyk: https://doc.qt.io/qt-5/stylesheet-reference.html#brush
Alright, thanks
momolegamer
13th November 2019, 15:37
There is some example of stylesheet using CMYK here : https://qss-stock.devsecstudio.com
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.