Results 1 to 2 of 2

Thread: How to include the overlay when printing

  1. #1
    Join Date
    Apr 2014
    Posts
    5
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to include the overlay when printing

    I've added basic print support which works well. However, I also use QwtPlotOverlay in order to put markers in the plot and I want them to be in the plot as well when printing. It seems like exportTo does not include any attached QwtPlotOverlays. Is there a way so that the overlays are rendered together with the plot just like you get it when updating the plot to the screen when printing?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to include the overlay when printing

    Quote Originally Posted by LaminateFloor View Post
    Is there a way so that the overlays are rendered together with the plot just like you get it when updating the plot to the screen when printing?
    No you would have to translate the overlays into plot items or write some code ( f.e by overloading QwtPlotRenderer::renderCanvas() ) that draws the stuff from the overlays.

    Uwe

Similar Threads

  1. Replies: 0
    Last Post: 29th April 2013, 11:47
  2. Video and OSD Overlay
    By akhilesh_s in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 12th September 2012, 13:46
  3. Printing Overlay and QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2009, 20:47
  4. overlay QGLContext
    By showhand in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2007, 16:51
  5. Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 21
    Last Post: 24th May 2006, 13:15

Tags for this Thread

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.