-
I am trying to write a python visualizer for QPixmap images. In the visualize I need to call methods on the c++ object passed to the visualizer. Currently I have it working using a combination of
Overall any comments on the things that I am doing wrong/could be doing better is greatly appreciated. Also I was wondering if it it is possible to reuse a webview? For example when the value of a variable is updated, I don't want to create a new webview, I just want to update the webview corresponding to that variable. I guess it is possible to do so by keeping track of already created webviews corresponding to variables in the python file, but I was wondering if there is a better solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think you can do much better than this. You could avoid some overheads associated with compiling C++ expressions by reading data directly from private fields of the pixmap object, but I'm not sure if that's worth it. Regarding webviews: yes, if you want to modify contents in-place, you'll need to keep track of them yourself. |
Beta Was this translation helpful? Give feedback.
I don't think you can do much better than this. You could avoid some overheads associated with compiling C++ expressions by reading data directly from private fields of the pixmap object, but I'm not sure if that's worth it.
Regarding webviews: yes, if you want to modify contents in-place, you'll need to keep track of them yourself.