Results 1 to 2 of 2

Thread: Screenshot with no show

  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Screenshot with no show

    Hi,

    I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures.

    I would like to hide this process of icon generation from the user, so is there any way that you can

    • Show/display a GLWidget/QWidget in some sort of virtual frame buffer, in such a way that is does NOT appear visual to the user.
    • Dump the contents of the invisible window into a pixmap.


    Best regards,

    Mads

  2. #2
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Screenshot with no show

    QPixmap QGLWidget::renderPixmap ( int w = 0, int h = 0, bool useContext = false )

Similar Threads

  1. Screenshot example doesn't work on Mac OSX
    By Damiano in forum Qt Programming
    Replies: 0
    Last Post: 19th January 2011, 11:17
  2. QT Desktop Screenshot not working
    By harleyskater in forum Qt Programming
    Replies: 11
    Last Post: 27th June 2010, 04:25
  3. Take a screenshot and convert it to PNG but FAST !
    By fitzy in forum Qt Programming
    Replies: 11
    Last Post: 4th November 2009, 08:20
  4. Take a screenshot of a QGraphicsRectItem
    By yazwas in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2009, 13:14
  5. Screenshot
    By graciano in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2009, 16:32

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.