Results 1 to 11 of 11

Thread: renderPixmap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    49
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 6 Times in 5 Posts

    Default Re: renderPixmap

    Why don't you use QGLWidget::grabFrameBuffer()?

  2. #2
    Join Date
    Jan 2007
    Posts
    95
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: renderPixmap

    wysota: This is not the problem because i have not modified my computer.
    wysota and jpn: If i used upper letter dont work.
    minimoog: Because I need to resize image.

    I know whats the problem but I dont know how to correct it. The problem is that if i create an object at first (in this function initializeGL()) works fine, but if i create an object from a file after initializeGL() dont work.

    I have read that renderPixmap run initializeGL, PaintGL and resizeGL, and thats the problem. I create an object out of this functions (reading from a file).

    I wish i explain well.

  3. #3
    Join Date
    Jan 2007
    Posts
    95
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: renderPixmap

    One question about the forum.
    Green light on near the username is that the user is online?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: renderPixmap

    Quote Originally Posted by zorro68 View Post
    One question about the forum.
    Green light on near the username is that the user is online?
    Yes, just like the tooltip says.

    Please, next time ask such questions in more appropriate place, like Feedback section.
    Last edited by jacek; 3rd March 2007 at 02:22.

  5. #5
    Join Date
    Feb 2007
    Posts
    49
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 6 Times in 5 Posts

    Default Re: renderPixmap

    Heh, you can use OpenGL to resize image for free (in your case just change the viewport). Or you can use render_to_texture (Framebuffer Object), or you can read directly the pixels with glReadPixels.

    Anyway, if you use renderPixmap, make sure that OpenGL initialization code (like setting perspective matrices, display lists) are in InitializeGL().

Similar Threads

  1. renderPixmap and texture
    By techno in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2006, 12:13

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.