Results 1 to 3 of 3

Thread: style sheet works on designer but not working through VS 2010 build

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default style sheet works on designer but not working through VS 2010 build

    Hi,

    I set the followinf css from the designer which works pretty OK.

    Qt Code:
    1. QWidget#BuddyListView{background-image: url( "D:/sip_client/sanal_santral/SIP_CLIENT_NG/SIPC_TTNGN/images/videoPhoneVideoBackground.png");
    2. }
    To copy to clipboard, switch view to plain text mode 

    But when I build my project from VS 2010 bakground-image isn't set.

    Any ideas?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: style sheet works on designer but not working through VS 2010 build

    Are you building and running your project on the same machine as the Designer is running?

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: style sheet works on designer but not working through VS 2010 build

    Definetely.


    Added after 11 minutes:


    By the way, setting solely i.e. "background:red" works just fine.
    Last edited by zgulser; 10th September 2012 at 09:38.

Similar Threads

  1. Replies: 1
    Last Post: 20th January 2011, 00:01
  2. QStyledItemDelegate - style sheet not working
    By tomixer in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2010, 11:12
  3. Qt Designer's style sheet editor dialog
    By GreenScape in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2010, 19:47
  4. QMenu style sheet: works in dev env, breaks in release
    By JimDaniel in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2008, 20:18
  5. Qt Designer Style Sheet Resources
    By bjoernbg in forum Newbie
    Replies: 1
    Last Post: 24th January 2007, 08: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.