Results 1 to 3 of 3

Thread: How to print a QGraphicsScene on a color printer using monochrome mode?

  1. #1
    Join Date
    Feb 2014
    Posts
    28
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question How to print a QGraphicsScene on a color printer using monochrome mode?

    Hello everyone,

    I want to send a QGraphicsScene to a color printer and print it with monochrome mode, Qt helper shows that QPrinter have two color mode: Color and GrayScale, but I just want to print the picture with black and white, and don't want to print gray color which shows displayed as some Discrete black dots, what should I do?

    Thank you for your help.

    Momo

  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: How to print a QGraphicsScene on a color printer using monochrome mode?

    Render the scene to a Qbitmap, monochrome QImage, or colour QImage that you then post-process to reduce the colour to black and white... then print that.

  3. #3
    Join Date
    Feb 2014
    Posts
    28
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to print a QGraphicsScene on a color printer using monochrome mode?

    Quote Originally Posted by ChrisW67 View Post
    Render the scene to a Qbitmap, monochrome QImage, or colour QImage that you then post-process to reduce the colour to black and white... then print that.
    Thank you for your answer, I've try that method before, but the scene is too large and QImage could not worked correct.

Similar Threads

  1. How to print(with the printer) a QML object ?
    By slimittn in forum Qt Quick
    Replies: 0
    Last Post: 28th May 2013, 13:52
  2. Print on dot matrix printer - very low performace
    By porterneon in forum Qt Programming
    Replies: 4
    Last Post: 18th October 2012, 23:51
  3. How to print text file to printer ?
    By d_stranz in forum Qt Programming
    Replies: 5
    Last Post: 11th July 2012, 16:47
  4. How to print pdf file on Printer in windows
    By lekhrajdeshmukh in forum Qt Programming
    Replies: 9
    Last Post: 30th November 2011, 16:36
  5. How to print textDocument on virtual printer?
    By mSergey in forum Qt Programming
    Replies: 8
    Last Post: 17th January 2008, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.