Results 1 to 2 of 2

Thread: GLWidget::renderPixmap() loses textures

  1. #1
    Join Date
    Oct 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question GLWidget::renderPixmap() loses textures

    Hi there,

    I've got a problem saving my scene from a subclassed GLWidget to a file. In my app there are some simple objects (polygons) filled with a texture. When I call
    Qt Code:
    1. QPixmap outPM = glwindow->renderPixmap(2048,1536);
    2. outPM.save(picFile, "JPG", 100);
    To copy to clipboard, switch view to plain text mode 
    all I get are the background (no texture, just color and some lines) and the outline of the polygons, but no texture. As I read in other threads all my objects are rendered fom paintGL() and initializeGL() is called either. Some textures are added dynamically during runtime. Is this a problem?
    useCOntext won't help because it has to run under windows, too.

    Any ideas?
    TIA Ben

  2. #2
    Join Date
    Jul 2006
    Location
    Almaty/KAZAKHSTAN
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: GLWidget::renderPixmap() loses textures

    Did you try QGLWidget::grabFrameBuffer()?

Similar Threads

  1. Opengl - Textures - Qt
    By Alex63 in forum Installation and Deployment
    Replies: 1
    Last Post: 29th June 2006, 10: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
  •  
Qt is a trademark of The Qt Company.