Results 1 to 2 of 2

Thread: How to get system color in QT4 as in C#.NET

  1. #1
    Join Date
    Jun 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to get system color in QT4 as in C#.NET

    Hi All,

    I want to know how can i get system color in my QT application. Means that i want to use system's color in my qt application.

    like in C#.NET i have:

    Color forecolor = SystemColors.WindowText
    Color backcolor = SystemColors.Window

    is there anything in QT 4? if yes pls give me guidence how could i get in my application.

    Thanks & Regards,
    Mitesh.

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get system color in QT4 as in C#.NET

    try
    Qt Code:
    1. widget->palette();
    To copy to clipboard, switch view to plain text mode 
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. Qt4 and system locale
    By L.Marvell in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2007, 13:00

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.