The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox OpenGLArchiveFrom the old forum

How to draw a NodeBox OpenGL with PyQt4?

3 replies Last reply

  1. I spent hours of research but couldn't find a solution that I could catch up with :(

    So, I want to draw (as a starting point very simple) graph created using NodeBox OpenGL. I can create this graph solely with NodeBox OpenGL, but is it possible to draw this NodeBox graph using PyQt4? I'm not very familiar with Qt but I could manage to create simple interfaces...

    Thanks for your help!

    Michael

    Copy link
  2. NodeBox team

    As far as I know, there's no easy way to integrate the two. NodeBox/OpenGL is written on Pyglet, so you might look at integration possibilities there. (For example, here is a QPygletWidget, but it uses PySide, not PyQT).

    Best,

    F

    Copy link
  3. As far as I know Pyglet will always open its own window, and draw there. This was the situation a year ago, at which time I also spent hours looking to make NOGL more easy to integrate with other projects (e.g., other drawing contexts such as Qt), since this would have been a valuable asset to the project. Things may have changed in the meantime, I will keep it in mind for when I have more time to work on NOGL.

    Best,
    Tom

    Copy link
  4. It's easy to use with PyQt, from the readme:

    "If you are using PyQt instead of PySide, the port should be really easy as the only thing
    you will probably have to do is to replace from PySide by from PyQt4"

    • I gave this a try and the demo code works, haven't tried with nodebox-gl.
    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply