Comments (6)
If anyone could just say "yes" if they succeeded with the current version.
As per http://vtk.1045678.n5.nabble.com/QT-Button-on-top-of-QVTKWidget-Mac-OS-td5740828.html
then https://stackoverflow.com/questions/26944831/using-qvtkwidget-and-qopenglwidget-in-the-same-ui
it works by replacing the old QGLWidget
with QOpenGLWidget
but it seems that we are currently using neither:
pyvista/pyvista#693
Anybody got it to work with the current usage of QWidget
?
from pyvistaqt.
Update: I got it to work partially. I was overthinking this. The QStackedLayout didn't work and I don't know why, but simply putting a widget inside the vtk widget works.
I have created a QStackedWidget inside the vtk widget instead.
But no transparency. I have seen examples in C++ where transparency is possible, so I am now trying to troubleshoot the transparency issue.
If I create a large widget area with a small button over the renderer, the large area is opaque but the mouse controls are still working with vtk. It only overrides the left click over the small button, which makes sense.
from pyvistaqt.
Thanks for sharing your insight @math-artist 👍 Although, I do not personally require this at the moment, I think it could be helpful for future reference. Do not hesitate to paste a <detail></detail>
code snippet if you manage to get something working (or not FWIW), that would be greatly appreciated.
from pyvistaqt.
@math-artist Would you mind describing more how you did this? How did you create a stacked widget inside of your QtInteractor? I'm hoping to overlay a small camera circle button onto the plotter for users to take a screenshot.
from pyvistaqt.
any progress on opacity? this is a really good question.
from pyvistaqt.
I ended up abandoning this one in favor of just having a push button outside of the plotter.
I think it would still be worth figuring out though.
from pyvistaqt.
Related Issues (20)
- only one of the subplots work on 4k monitor
- Online documentation not up to date HOT 1
- Lingering references prevent garbage collection
- Segmentation fault on Mac with PyQt5 HOT 2
- Race condition: BackgroundPlotter has no attribute named image HOT 3
- Running pyvistaqt project in Github Action HOT 2
- Inconsistent plotting results with PyVistaQT versus Jupyter (Trame) backends HOT 3
- Issue using pyvistaqt QtInteractor on Windows 10
- MAINT: Deploy docs HOT 7
- solicitud para agregar característica, para guardar los modelos en formato obj
- Stage release for PyVista 0.40 HOT 3
- Update GC testing fixture
- MAINT: Remove Azure
- Make the canvas background transparent HOT 1
- X Error of failed request: BadWindow (invalid Window parameter) HOT 3
- Border glitch during resize HOT 6
- macOS `pvqt.BackgroundPlotter` never opens window HOT 1
- DOC: MultiPlotter vs BackgroundPlotter
- no mouse interactivity with BackgroundPlotter HOT 1
- Consider adding `.git_archival.txt` to include version number in git archive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvistaqt.