Results 1 to 6 of 6

Thread: How do I get a snapshot of a widget ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default How do I get a snapshot of a widget ?

    I'm using PySide2, to create a node graph based widget, which is set inside a scrollarea.

    I would like to save a snapshot of all the nodes inside my scrollarea. Currently I have to take a screenshot, scroll, and take another, and another, then I have to use photoshop to stitch them together. (basically pan and use snipping tool and stitch to make a image with all my nodes.)

    I found this on Stack,
    Qt Code:
    1. .grabWidget() & .grab()
    To copy to clipboard, switch view to plain text mode 
    but it says in the Qt docs that it has been discontinued. If i implement it anyway, it crashes my program.

    Qt Code:
    1. QtGui.QPixmap.grabWidget(widget)
    To copy to clipboard, switch view to plain text mode 

    https://stackoverflow.com/questions/...include-the-ti



    Is there another way to create a snapshot?
    Attached Images Attached Images
    • File Type: jpg 2.jpg (23.3 KB, 4 views)

Similar Threads

  1. How to get a snapshot of a video in Qt???
    By wshn13 in forum Qt Programming
    Replies: 12
    Last Post: 1st August 2011, 07:22
  2. Getting the lates snapshot of qt
    By Lykurg in forum Installation and Deployment
    Replies: 15
    Last Post: 10th April 2009, 21:38
  3. Where can I get snapshot for Qt 4.3.0
    By davit in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 08:17
  4. Build a snapshot
    By Dark_Tower in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd April 2006, 16:00
  5. Qt 4.1.1 snapshot on windows
    By ldindon in forum Installation and Deployment
    Replies: 4
    Last Post: 13th February 2006, 13:58

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.