Results 1 to 6 of 6

Thread: GetSysColor and SetSysColor

  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question GetSysColor and SetSysColor

    Hi All
    CAn any body tell me what is the equivalent of windows API GetSysColor() and SetSysColor() in Qt.?


    Thank You All.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GetSysColor and SetSysColor

    See QPalette.

  3. #3
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GetSysColor and SetSysColor

    Quote Originally Posted by jacek View Post
    I went through the QPallet , but there is no option to get system colour.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

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

    Default Re: GetSysColor and SetSysColor

    What is 'System Color' on e.g . Linux? Imo there's no equivalent there - so no Qt function to access those informations. Also I don't know why you should need them at all.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GetSysColor and SetSysColor

    Quote Originally Posted by phillip_Qt View Post
    I went through the QPallet , but there is no option to get system colour.
    Please define what a "system colour" is and I'm sure we'll find something in the QPalette.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: GetSysColor and SetSysColor

    Based on anothe thread I can assume that "system colours" are "default palette" thus every role in QPalette is a "system colour" only on a local basis (widget wide).

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.