Results 1 to 3 of 3

Thread: qtquick 2 and modern opengl

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default qtquick 2 and modern opengl

    Hello forum,

    I came to know that qt quick uses opengl 2 for its rendering. What if i want to use modern opengl (4.x) as underlay with qt quick2 on top.

    Where do i set the compatibility profile if i follow the procidure as mentioned in the following link :

    https://qt-project.org/doc/qt-5-snap...l-example.html


    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qtquick 2 and modern opengl

    You might have to use a different integration approach, e.g. rendering the QtQuick scene into a frame bufffer object (see QQuickWindow::setRenderTarget) or rendering the custom OpenGL into a QQuickFramebufferObject item.

    Cheers,
    _

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtquick 2 and modern opengl

    Quote Originally Posted by sajis997 View Post
    Hello forum,

    I came to know that qt quick uses opengl 2 for its rendering. What if i want to use modern opengl (4.x) as underlay with qt quick2 on top.

    Where do i set the compatibility profile if i follow the procidure as mentioned in the following link :

    https://qt-project.org/doc/qt-5-snap...l-example.html
    Did you try using QWindow::setFormat() ? QQuickWindow inherits QWindow so you should be able to set the required profile in QSurfaceFormat.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. The following user says thank you to wysota for this useful post:

    sajis997 (17th December 2014)

Similar Threads

  1. opengl rendering with qtquick UI overlay
    By sajis997 in forum Newbie
    Replies: 1
    Last Post: 6th December 2014, 10:43
  2. Replies: 3
    Last Post: 6th March 2014, 11:09
  3. What is QtQuick/QML really for?
    By Huk in forum Qt Quick
    Replies: 7
    Last Post: 21st June 2012, 21:33
  4. modern blurry traslucent effect... it is possible on QT?
    By javimoya in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2010, 01:09
  5. How modern is C++ language used in Qt's API?
    By piotr.dobrogost in forum Newbie
    Replies: 18
    Last Post: 31st May 2009, 04:44

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.