Results 1 to 2 of 2

Thread: How to programatically print the content of a QGraphicView?

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question How to programatically print the content of a QGraphicView?

    I'm building an editor (similar to MS Visio) to draw a hierarchical finite state machine. Hence I need to draw rectangles (states) and lines (transitions) in a QGraphicView.

    How to programmatically print the content of a QGraphicView?

  2. #2
    Join Date
    Jul 2008
    Posts
    424
    Thanks
    9
    Thanked 54 Times in 52 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to programatically print the content of a QGraphicView?

    Hi, you can use the QGraphicsScene::render() function to create an image or print to a printer.

    Ginsengelf

Similar Threads

  1. Insert image to QGraphicView
    By jmarshellk in forum Newbie
    Replies: 2
    Last Post: 22nd March 2013, 06:21
  2. QGraphicView Optimizing cpu
    By fkili in forum Newbie
    Replies: 4
    Last Post: 27th September 2012, 14:02
  3. How to use QGraphicView?
    By karthic in forum Newbie
    Replies: 12
    Last Post: 27th April 2012, 08:06
  4. Cancelling Long-running Print/Print Preview
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 16th June 2009, 23:05
  5. my QGraphicView problem
    By irmakci in forum Qt Programming
    Replies: 3
    Last Post: 19th July 2008, 18:40

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.