Results 1 to 16 of 16

Thread: QTextEdit text size

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    79
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextEdit text size

    Well, correct me if I'm wrong but I don't think that's correct approach. I want to always print at HighResolution regardless of size of that what I'm printing.

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

    Default Re: QTextEdit text size

    Quote Originally Posted by Tiansen View Post
    I want to always print at HighResolution regardless of size of that what I'm printing.
    So print at high resolution, I'm not stopping you from doing that - you have three parameters, the resolution of the printer, resolution of the screen and size of the font. Find a combination of the three that works for you. Do you want us to take a calculator and calculate it for you or is there some other thing you are asking us to do?
    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
    Feb 2008
    Posts
    79
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextEdit text size

    OK. Now. I want to print at 300 DPI, my screen resolution is what it is - fixed. Now I have to set font size so, that I get proper size, when I print on paper. I am only wondering, why does not zoomOut() function of QTextEdit work, so I can have proper font size for printing and proper size on screen (zoomed out) too.

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

    Default Re: QTextEdit text size

    Probably because zoomOut() is no-op when the effective point size becomes negative (since the default font size is probably somewhere around 9, if you substract 10 it becomes -1). Note that calling zoomOut() is effectively identical to calling setFont() with a fixed font size which is bound to give the effect other than you want if someone has a different printer or a different system font which is what you opted to avoid at the beginning of this thread.
    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.


Similar Threads

  1. Adjust the initial size of a QTextEdit in a layout
    By hecinho in forum Qt Programming
    Replies: 0
    Last Post: 26th November 2009, 15:58
  2. Replies: 12
    Last Post: 30th May 2009, 14:29
  3. QTextEdit + paste rich text as plain text only
    By Yong in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2008, 16:45
  4. Size of the cursor in QTextEdit
    By Ankitha Varsha in forum Qt Programming
    Replies: 3
    Last Post: 22nd January 2008, 12:32
  5. Replies: 1
    Last Post: 24th October 2006, 16:40

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.