# How to set a transparent Button on QVTKWidget based on QT

**URL:** https://discourse.vtk.org/t/how-to-set-a-transparent-button-on-qvtkwidget-based-on-qt/3586
**Category:** Support
**Created:** [June 18, 2020, 8:59am UTC](https://discourse.vtk.org/t/how-to-set-a-transparent-button-on-qvtkwidget-based-on-qt/3586 "2020-06-18T08:59:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lllaa](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/aca169/32.png) [@lllaa](https://discourse.vtk.org/u/lllaa)
#### Post date: [June 18, 2020, 8:59am UTC](https://discourse.vtk.org/t/how-to-set-a-transparent-button-on-qvtkwidget-based-on-qt/3586/1 "2020-06-18T08:59:47Z")

</div>

![a1](https://discourse.vtk.org/uploads/default/original/2X/d/db7b0b2ac688dc8ab38965dff42d96e3d14802a3.jpeg)

Just like this pic shows.Although I set the button rgba(x,x,x,40) which is transparent in my code,the button named “Adjust” is not transparent in the blue QVTKWidget .

---

<div class="post-metadata">

### Author: ![rdbrn](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rdbrn/32/5627_2.png) [@rdbrn](https://discourse.vtk.org/u/rdbrn)
#### Post date: [June 19, 2020, 7:41am UTC](https://discourse.vtk.org/t/how-to-set-a-transparent-button-on-qvtkwidget-based-on-qt/3586/2 "2020-06-19T07:41:14Z")

</div>

I think this is a qt thing. As far as I understand the qvtkwidget is rendered separately from the rest of the controls.  
If you to ask this question in the [qt forum](https://forum.qt.io/) instead of here then you will be more likely to get a useful response.

---

<div class="post-metadata">

### Author: ![lllaa](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/aca169/32.png) [@lllaa](https://discourse.vtk.org/u/lllaa)
#### Post date: [June 19, 2020, 7:47am UTC](https://discourse.vtk.org/t/how-to-set-a-transparent-button-on-qvtkwidget-based-on-qt/3586/3 "2020-06-19T07:47:06Z")

</div>

Thankfor your advice.
