Results 1 to 4 of 4

Thread: Where to put my stylesheets?

  1. #1
    Join Date
    Feb 2010
    Posts
    51
    Thanks
    9
    Thanked 14 Times in 4 Posts

    Default Where to put my stylesheets?

    In my Qt project I'm using the Qt Designer Editor when building my ui. I'm using stylesheets to set the styles of the different widgets around the project. My problem is that I want to use one file when creating my stylesheets, so that I have all styles in the same place. I could do everything in my centralWidgets's stylesheet property but as some of my widgets gets loaded into the project by code it doesn't seem to work in the Designer Editor. I also looked at this example but then it wont work in the Designer Editor either: http://wiki.forum.nokia.com/index.ph...a_QApplication

    Where should I put my stylesheets if I want it to work also in Qt Designer Editor? Is there a way like in html to include the css file from somewhere?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Where to put my stylesheets?

    Well, you can manually open the file, copy content and set the style sheet,,,,, cant you ?

  3. #3
    Join Date
    Feb 2010
    Posts
    51
    Thanks
    9
    Thanked 14 Times in 4 Posts

    Default Re: Where to put my stylesheets?

    Thanks for your answer!

    I'm not sure what you mean? To make my project easy to overlook I would like to have all my styles at one place. So it's easy to modify my styles. What file can I open and copy?

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Where to put my stylesheets?

    Well, as you said, you can set all the sheet in your central widget stylesheet. You can also include the stylesheet for widgets that get loaded later. Though you wont be able to see them in designer.

    Is there a way like in html to include the css file from somewhere?
    I guess yes,, I had read something familiar but cant recall. So lets wait for someone else to answer

Similar Threads

  1. Stylesheets & printing
    By xburgerhout in forum Qwt
    Replies: 4
    Last Post: 10th May 2010, 19:55
  2. Stylesheets
    By FuryCradle in forum Newbie
    Replies: 2
    Last Post: 26th September 2009, 21:34
  3. StyleSheets and children
    By spraff in forum Qt Programming
    Replies: 2
    Last Post: 26th November 2008, 19:00
  4. stylesheets with RGB
    By tommy in forum Qt Programming
    Replies: 4
    Last Post: 13th December 2007, 01:02
  5. Problem mit Stylesheets
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2006, 20:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.