Results 1 to 3 of 3

Thread: How to the background of QPrintPreviewWidget ?

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to the background of QPrintPreviewWidget ?

    Hi,
    I met a problem with QPrintPreviewWidget ,which is that I can not change the background of it by QStyle Sheet. Can somebody give me some advice?
    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to the background of QPrintPreviewWidget ?

    What exactly did you try and how does the result differ from what you had expected?
    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
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to the background of QPrintPreviewWidget ?

    Hi,
    Thanks for your answer.

    "QPrintPreviewWidget{
    background: #1E1E1E;
    }"

    I added abvoe lines to my StyleSheet file(*.qss).But it dose not work.Because the background of the QPrintPreviewWidget I created in my project is still default,which is different from the color :#1E1E1E.

Similar Threads

  1. text on QPrintPreviewWidget dissapear
    By qt-nubie in forum Newbie
    Replies: 0
    Last Post: 22nd January 2013, 10:51
  2. Replies: 0
    Last Post: 14th January 2013, 12:55
  3. Problem with QPrintPreviewWidget
    By nifei in forum Qt Programming
    Replies: 2
    Last Post: 25th March 2012, 01:18
  4. Trouble to print with QPrintPreviewWidget
    By estanisgeyer in forum Qt Programming
    Replies: 5
    Last Post: 24th December 2009, 06:14
  5. Trouble with QPrintPreviewWidget
    By estanisgeyer in forum Qt Programming
    Replies: 0
    Last Post: 9th December 2008, 13:07

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.