Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenCascade embedded in Qt
Forum Updated to NodeBB v4.3 + New Features

OpenCascade embedded in Qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.1k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    IvanM1976
    wrote on last edited by
    #1

    How to embed OpenCascade in QOpenGLWidget?

    Moving from QGLWidget to QOpenGLWidget is giving to me a lot of problems, infact nothing shows except a black rectangle. I supposed this is because QOpenGlWidget (instead of QGLWidget) uses a FBO to render.

    I tried also to derive from QWidget and create my own QWindow as surface and my own OpenGLContext but I have bad results.

    Does anyone have examples explaining how to embed OC in QT?

    thank you

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Maybe this "project":http://code.google.com/p/openshapefactory/ or "this one ":http://qtocc.sourceforge.net/index.html might help you

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • I Offline
        I Offline
        IvanM1976
        wrote on last edited by
        #3

        Hi SGaist,

        thank you for the links you suggested me! They were very interesting and useful.

        Unfortunately they both use the WA_PaintOnScreen attribute that dosn't let me put semitransparent Widgets on the view (sorry for not having said this before)

        I tried to use createWindowContainer to let Opencascade render on a QWindow but the semitransparent widget appears below the view.
        In order to make widget overlapping i use a QGridLayout and make the widgets share the same cells.

        Now i'm tryin to create a QOpenGLFrameObject to bind the rendering pipeline but OpenCascade renders very bad. I think it's a question of different formats and context.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          Zozitak
          wrote on last edited by
          #4

          @IvanM1976 I don't know if it's relevant yet.
          https://github.com/eryar/occQt.git

          1 Reply Last reply
          1

          • Login

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