Results 1 to 5 of 5

Thread: Custom QGraphicsView

  1. #1
    qtoptus Guest

    Default Custom QGraphicsView

    Hallo,

    I want to make use of the QGraphicsScene and/or QGraphicsView but using a different rendering system than the native or OpenGL. Is this something doable? What components I need to re-implent, wrap, or ignore to use Direct3D rendering for example?

    Thanks.

  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: Custom QGraphicsView

    ==========================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
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom QGraphicsView

    You can also implement you own graphics system but that's.... hell lots of work.
    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. #4
    qtoptus Guest

    Default Re: Custom QGraphicsView

    Thanks for your information.

    Since the idea is possible and no restriction is made regarding what graphics engine is used, I was thinking if the idea really worth the effort. The reason I'm thinking of implementing a custom graphics engine using Direct3D is that driver issues of the "unstable" OpenGL, especially with some laptops that comes with low quality built-in video chips. And since my only target platform is Windows, then it would be more portable to use something like Direct3D to ensure reliability of the graphics. However, why not use the Qt pixel engine instead? My concern here is only performance. I don't know if the native Qt paint system is accelerated, or what graphics API it uses. How capable is it to render textured polygons in 2D or perform shader effects...etc.

    Cheers.

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

    Default Re: Custom QGraphicsView

    Quote Originally Posted by qtoptus View Post
    I don't know if the native Qt paint system is accelerated,
    There is no single "native" paint system. Qt uses different paint systems on different platforms by default. You can override that with -graphicssystem switch.

    or what graphics API it uses.
    On Windows graphics operations are done using the so called "raster engine" Qt has (which is very optimized) and then blitted to Windows surfaces using GDI.

    How capable is it to render textured polygons in 2D or perform shader effects...etc.
    The only acceleration API Qt officially supports is OpenGL (and GLSL for shaders). There used to be a Direct3D backend but it is not maintained anymore and very likely incompatible with the current needs of Qt.

    You should be quite ok with the raster engine, in many cases it's much faster than the accelerated GL backend.
    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. Replies: 2
    Last Post: 19th April 2010, 12:49
  2. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  3. Replies: 0
    Last Post: 10th October 2009, 05:44
  4. Custom scrolling of QGraphicsView
    By hb in forum Qt Programming
    Replies: 0
    Last Post: 12th August 2008, 10:10
  5. Can't create my custom QGraphicsView for QDesigner
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 13th October 2007, 21: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
  •  
Qt is a trademark of The Qt Company.