Results 1 to 2 of 2

Thread: 4.5.2 =>4.6.3 OpenGL shaders+qrphicsview issue

  1. #1
    Join Date
    Dec 2009
    Posts
    50
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Question 4.5.2 =>4.6.3 OpenGL shaders+qrphicsview issue

    Hi All

    I have relatively large project. Part of it displays some video items on QGraphicsView. Each video item has openGl shader to convert yuv to rgb. Everything works in QT 4.5.2.
    I just tried to use 4.6.3. and got some issue. Instead of normal video I see pink rectangles.
    Besides, I call
    m_videoView.setViewport(new QGLWidget());

    But in

    void CLVideoWindow:aint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
    (CLVideoWindow inherits QGraphicsItem )
    condition
    if (painter->paintEngine()->type() != QPaintEngine::OpenGL)

    is always true(unexpected).
    In 4.5.2 it's always false (expected).

    I'm not sure if it makes any sence.


    Just in case I attach the code for rendering yuv.
    Did anybody have such issues?

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Join Date
    Dec 2009
    Posts
    50
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: 4.5.2 =>4.6.3 OpenGL shaders+qrphicsview issue

    problem solved

    painter->beginNativePainting();
    painter->endNativePainting();
    were missing.

Similar Threads

  1. Replies: 0
    Last Post: 20th August 2010, 12:50
  2. Possible OpenGL / Intel driver issue
    By Truder in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2009, 11:06
  3. Opengl issue with Qt4.4.3
    By j0rt4g4 in forum Newbie
    Replies: 13
    Last Post: 2nd December 2008, 12:36
  4. QGraphicsView + OpenGL -> Pixmap rendering issue
    By JoergRe in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2008, 18:41
  5. OpenGl Issue
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 7th April 2007, 05:28

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.