Results 1 to 3 of 3

Thread: How to add a plattform specific stylesheet to a window directly the designer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Question How to add a plattform specific stylesheet to a window directly the designer

    Hi,

    I have created a QT application using QT Creator and I compiled a Linux version and a Windows version. For the design of the windows/widgets I'm using a stylesheet. I added that stylesheet to the windows directly in the designer.

    My Question: Is it possible to assign different stylesheets for the different platforms directly in the designer or by modifying the XML-File which is created by the designer? I could simply use the setStyleSheet-Function of the window to set the different stylesheets manually but I would prefer to do that directly in the designer because then I have a preview of my design.

    Is it maybe possible to use a resource file as stylesheet via designer or by modifying the XML-File? If that was possible, is could simply use different stylesheets for the different plattforms by using a platform condition in the project file.

  2. The following user says thank you to Infinity for this useful post:


Similar Threads

  1. Replies: 4
    Last Post: 7th August 2011, 15:44
  2. Replies: 0
    Last Post: 29th April 2011, 08:24
  3. StyleSheet components using Qt designer
    By Kostanev in forum Qt Tools
    Replies: 1
    Last Post: 21st April 2008, 08:28
  4. Replies: 5
    Last Post: 7th November 2006, 15:01
  5. positioning a window at a specific screen position
    By nupul in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2006, 20:21

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.