Results 1 to 5 of 5

Thread: Qt application with vista style

  1. #1

    Default Qt application with vista style

    Hi there ,

    I'm trying to create Qt GUI with vista style using visual studio 2008 .

    the problem is that QWindowsVistaStyle works only on windows vista platform .

    I found that xtreme toolkit pro can create vista style GUI which works also on windows xp.

    but it uses MFC .

    How can I combine between Qt and xtreme toolkit pro to have a vista style GUI and Qt componet together ?

    Regards ,

    Ahmad

  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: Qt application with vista style

    I don't think you can. But this component you speak of probably only creates a skin that looks like vista, but is not vista. If you want something similar with Qt, use stylesheets.

  3. #3

    Default Re: Qt application with vista style

    Thanks for your help ,

    But is it possible to change the frame border's style using stylesheet ?

  4. #4
    Join Date
    Oct 2008
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt application with vista style

    Quote Originally Posted by ahmad_elhoni View Post
    Thanks for your help ,

    But is it possible to change the frame border's style using stylesheet ?
    Yes it supports the box model, so border property can be set. See the Qt Style Sheets Reference for an example.

  5. #5
    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: Qt application with vista style

    Quote Originally Posted by ahmad_elhoni View Post
    But is it possible to change the frame border's style using stylesheet ?
    If you mean the top level window border then no. But you can disable it and provide your own looks for it. That's probably what the mfc solution you mentioned does. If you want to try that with Qt, there is an implementation of such a mechanism described somewhere on the forum. I think it was developed by "kernel_panic".

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Mac Style for Qt Application---help needed
    By swamyonline in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2008, 21:49
  3. Loading / setting custom style on win-xp
    By mpotocnik in forum Newbie
    Replies: 0
    Last Post: 29th April 2008, 11:38
  4. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37

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.