Results 1 to 5 of 5

Thread: Creating QUAD Elements would openGL be better than Qt

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Creating QUAD Elements would openGL be better than Qt

    Dear Friends
    I need your suggestions I have a QMainWindow where I have a QGraphicsView.
    I basically want to display some elements ,i.e QUAD elements these elements will be graphics.
    Would be Qt best for this or OpenGL graphics would be better option.This is not 3D graphics but 2D.
    Do I need to replace QGraphicsView by QGLWidget to display openGL graphics ?
    Any suggestion would be greatly appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Creating QUAD Elements would openGL be better than Qt

    define "best".
    What are the requirements of your project?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: Creating QUAD Elements would openGL be better than Qt

    I have to develop a meshing software where I have a set of data points and I need to create element ,e.g QUAD elements which are to be displayed on the screen. These are basically graphicsItems so I want to deploy them in openGL.

    These QUAD elements are in a set may be around 1000 QUAD elements I need to create whihc will be looking like a mesh.

    So could you tell me what are the steps to create these element using openGL under Qt framework.

  4. #4
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Creating QUAD Elements would openGL be better than Qt

    I would create a class or a struct with a QUAD element, than would create a QList of QUAD's. To display it with Opengl check
    http://doc.qt.nokia.com/4.6-snapshot...t.html#details and check the Qt Opengl examples in the Assistant

  5. #5
    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: Creating QUAD Elements would openGL be better than Qt

    If your graphics view is running an OpenGL viewport, you can use OpenGL calls in your graphics view items paint routines.
    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. OpenVG EGL supprt in 4.6.0-tp1 + OpenGL questions
    By aamer4yu in forum Installation and Deployment
    Replies: 0
    Last Post: 11th September 2009, 18:17
  2. OpenGL and Qt Question
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 18:04
  3. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 07:21

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.