Giter Site home page Giter Site logo

Comments (6)

math-artist avatar math-artist commented on May 25, 2024

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.

math-artist avatar math-artist commented on May 25, 2024

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.

GuillaumeFavelier avatar GuillaumeFavelier commented on May 25, 2024

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.

JacobBumgarner avatar JacobBumgarner commented on May 25, 2024

@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.

Xiaoyuew avatar Xiaoyuew commented on May 25, 2024

any progress on opacity? this is a really good question.

from pyvistaqt.

JacobBumgarner avatar JacobBumgarner commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.