Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. access to qquickframebufferobject renderer instance
QtWS25 Last Chance

access to qquickframebufferobject renderer instance

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qquickframebufopenglqquickitem
3 Posts 2 Posters 629 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MintogoDeveloper
    wrote on last edited by
    #1

    Hi. I trying to openGL integrated QuickItem by using qquickframebufferobject class.

    I saw Qt's example and create renderer.

    https://www.qt.io/blog/2015/05/11/integrating-custom-opengl-rendering-with-qt-quick-via-qquickframebufferobject

    In above page, return renderer like this

    ...
     QQuickFramebufferObject::Renderer *createRenderer() const
        {
            return new FbItemRenderer;
        }
    ...
    

    But my opengl renderer has some custom functions.

    for example,

    void AddModel(std::string modelPath);
    

    so, I should access QQuickFramebufferObject::Renderer instance and call AddModel function with path parameter.

    How can I get and store renderer instance?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MintogoDeveloper
      wrote on last edited by
      #2

      I resolve it!

      W 1 Reply Last reply
      0
      • M MintogoDeveloper

        I resolve it!

        W Offline
        W Offline
        Winwinftw
        wrote on last edited by
        #3

        @MintogoDeveloper

        Hi, i am also following the blog post and trying to do the example he provided. But it seems i can't render anything out. Do you have some snippets of your code that can render something? Such that i can use it as reference

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved