Results 1 to 4 of 4

Thread: Mixing Qt and OpenGl - Best approach

  1. #1
    Join Date
    May 2013
    Posts
    45
    Thanks
    6
    Thanked 6 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Mixing Qt and OpenGl - Best approach

    Hello,

    I just finished watching developer days 2013 talk on "Integrating QtQuick with 3D renderers".

    Currently I use a 3D engine in QGraphicsView by re implementing drawBackground function and doing custom rendering there. This works quite well for me. After watching the talk I realize there are other faster and robust approaches.
    If you where able to use any of the approaches for mixing OpenGl code (specifically mixing 3D engine) which one would you choose in terms of reliability and speed? I can use Qt Quick or Qt widgets.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Mixing Qt and OpenGl - Best approach

    First of all I would upgrade to Qt5 and QtQuick 2 instead of Graphics View.
    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.


  3. #3
    Join Date
    May 2013
    Posts
    45
    Thanks
    6
    Thanked 6 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Mixing Qt and OpenGl - Best approach

    Quote Originally Posted by wysota View Post
    First of all I would upgrade to Qt5 and QtQuick 2 instead of Graphics View.
    Hello,

    What is the best approach (reliability and speed) in Qt5/ Qt Quick 2 for using OpenGl?

    Thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Mixing Qt and OpenGl - Best approach

    Connecting to beforeRendering() signal and drawing your scene there.
    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.


Similar Threads

  1. mixing qt and mfc
    By marco.stanzani in forum Qt Programming
    Replies: 4
    Last Post: 30th December 2012, 17:30
  2. Replies: 1
    Last Post: 9th November 2011, 18:34
  3. Mixing Qt and c
    By Aladin in forum General Programming
    Replies: 8
    Last Post: 28th March 2011, 14:29
  4. Problem when mixing openGL and QPainter
    By sanjayshelke in forum Qt Programming
    Replies: 9
    Last Post: 21st March 2008, 12:49
  5. Mixing MFC and Qt
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2006, 14:55

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.