Results 1 to 5 of 5

Thread: Create themes for application.

  1. #1
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Create themes for application.

    Hi all,
    i have question about create themes for application.
    I would like have options in menu which allow user to change theme between white ( like office 2013 white )
    and for example visual studio 2013 ( blue ) as you can see on the images.

    theme visual.jpg
    white theme.jpg

    how do it in qt?
    I should change pallete in QtDesigner? I try but I can't change background color some widgets like QMenuBar or QToolButton.
    Or I should use Qt Style Sheets? And how to switch between them?

  2. #2
    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: Create themes for application.

    See QStyle and friends.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Create themes for application.

    I used QStyleFactory::keys() and without windows-style i have only Fusion.

    It looks ok but not perfectly and I will need adjust it. Can I mix Fusion style with QPalette and/or QSS?
    Maybe you know anything about ready style which I can download and use in my app?
    I think that create own style require a lot of work but and my time now is limited...

    Thanks,

  4. #4
    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: Create themes for application.

    Quote Originally Posted by atomic View Post
    I used QStyleFactory::keys() and without windows-style i have only Fusion.

    It looks ok but not perfectly and I will need adjust it. Can I mix Fusion style with QPalette and/or QSS?
    Maybe you know anything about ready style which I can download and use in my app?
    I think that create own style require a lot of work but and my time now is limited...

    Thanks,
    Google for "Qt custom style", maybe you will find something. I think there is a number of styles in Qt you can enable during compilation as well.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create themes for application.

    Look at the "Styles Example" that comes with Qt. It does just this.

Similar Threads

  1. Replies: 0
    Last Post: 15th October 2013, 10:32
  2. Themes for the gui
    By nackasha in forum Newbie
    Replies: 1
    Last Post: 18th August 2011, 10:00
  3. Using *.rcc files as Themes
    By momesana in forum Qt Programming
    Replies: 8
    Last Post: 31st January 2008, 06:53
  4. Qt Themes on win32? how?
    By Thaorius in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2007, 01:45
  5. qt3 themes example: missing header files?
    By nikita in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2006, 13:12

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.