Results 1 to 6 of 6

Thread: Stylesheet using CMYK

  1. #1
    Join Date
    May 2019
    Posts
    3
    Thanks
    1
    Platforms
    Unix/X11

    Default Stylesheet using CMYK

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    459
    Thanked 64 Times in 60 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Stylesheet using CMYK

    don't know what 'background' is but are you looking for https://doc.qt.io/qt-5/qcolor.html#getCmyk ?

  3. #3
    Join Date
    May 2019
    Posts
    3
    Thanks
    1
    Platforms
    Unix/X11

    Default Re: Stylesheet using CMYK

    Quote Originally Posted by ChristianEhrlicher View Post
    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.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    459
    Thanked 64 Times in 60 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Stylesheet using CMYK


  5. The following user says thank you to ChristianEhrlicher for this useful post:

    Daylyt2k19 (14th May 2019)

  6. #5
    Join Date
    May 2019
    Posts
    3
    Thanks
    1
    Platforms
    Unix/X11

    Default Re: Stylesheet using CMYK

    Quote Originally Posted by ChristianEhrlicher View Post
    Alright, thanks

  7. #6
    Join Date
    Oct 2019
    Posts
    7
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Stylesheet using CMYK

    There is some example of stylesheet using CMYK here : https://qss-stock.devsecstudio.com

Similar Threads

  1. stylesheet
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2010, 08:45
  2. Qt Stylesheet
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2009, 15:48
  3. How to do this with StyleSheet
    By yxmaomao in forum Qt Programming
    Replies: 5
    Last Post: 30th May 2008, 09:54
  4. stylesheet
    By phillip_Qt in forum Qt Programming
    Replies: 11
    Last Post: 27th April 2008, 20:11
  5. writing CMYK-Files from QImage
    By hilby in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2006, 16:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.