Results 1 to 4 of 4

Thread: QTextDocument printing - specify font size?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextDocument printing - specify font size?

    Quote Originally Posted by wysota View Post

    No dice. I added:
    Qt Code:
    1. document.setDefaultStyleSheet("* {font-size: 24}");
    To copy to clipboard, switch view to plain text mode 

    I also tried variations (*=body, p, no selector and no{ }, etc). Is my style sheet syntax wrong?
    Last edited by Scorp1us; 1st March 2007 at 15:02.

Similar Threads

  1. Replies: 3
    Last Post: 30th January 2007, 07:35
  2. QTextDocument - color, font
    By kemp in forum Qt Programming
    Replies: 6
    Last Post: 24th January 2007, 13:51
  3. QTreeView font size not being set
    By forrestfsu in forum Qt Tools
    Replies: 2
    Last Post: 12th October 2006, 13:53
  4. change font size and button size of QMessageBox
    By nass in forum Qt Programming
    Replies: 6
    Last Post: 13th September 2006, 19:16
  5. Replies: 0
    Last Post: 28th June 2006, 20:49

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.