How to draw a NodeBox OpenGL with PyQt4?

Michael's Avatar

Michael

25 Mar, 2013 11:02 AM

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

  1. Support Staff 1 Posted by Frederik De Ble... on 30 May, 2013 08:58 AM

    Frederik De Bleser's Avatar

    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

  2. Frederik De Bleser closed this discussion on 30 May, 2013 08:58 AM.

  3. tomdesmedt re-opened this discussion on 04 Dec, 2013 12:38 AM

  4. Support Staff 2 Posted by tomdesmedt on 04 Dec, 2013 12:38 AM

    tomdesmedt's Avatar

    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

  5. 3 Posted by Stuart Axon on 25 Nov, 2015 11:29 AM

    Stuart Axon's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 Sep, 2021 03:55 AM
10 Sep, 2021 04:25 AM
09 Sep, 2021 02:25 AM
06 Sep, 2021 07:06 PM
20 Aug, 2021 03:27 PM

 

18 Aug, 2021 11:31 AM
18 Aug, 2021 09:42 AM
30 Jul, 2021 11:35 PM
29 Jul, 2021 10:11 PM
29 Jul, 2021 10:06 PM
25 Jul, 2021 10:21 PM