# QWidget and the vtkContextView?

**URL:** https://discourse.vtk.org/t/qwidget-and-the-vtkcontextview/2907
**Category:** Support
**Created:** [March 29, 2020, 9:51am UTC](https://discourse.vtk.org/t/qwidget-and-the-vtkcontextview/2907 "2020-03-29T09:51:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [March 29, 2020, 9:51am UTC](https://discourse.vtk.org/t/qwidget-and-the-vtkcontextview/2907/1 "2020-03-29T09:51:06Z")

</div>

> [@Move a scalar bar with pyq5 and python3.5](https://discourse.vtk.org/t/how-can-i-integrate-the-qwidget-and-the-vtkcontextview/289):
>
> Hi all, I’m trying write an application with a vtk windows. Nevertheless, I have some difficulties to move and resize manually the scalar bar when I use pyqt5. Here’s my code: # -\*- coding: utf-8 -\*- import sys from PyQt5 import QtWidgets, QtGui, QtCore, Qt from PyQt5.QtWidgets import \* from PyQt5.QtGui import \* from PyQt5.QtCore import \* import pyqtgraph import math import numpy import vtk import vtk.qt vtk.qt.QVTKRWIBase = "QGLWidget" from vtk.qt.QVTKRenderWindowInteractor import QVTKR…

 ![colorEditer](https://discourse.vtk.org/uploads/default/original/2X/6/69e80355a33467bff7cde0a810ee35fcbfad5637.png)  
How can i integrate the vtkContextView withe the Qt’widget like QVTKＷＩｇｅｔ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [March 30, 2020, 1:48am UTC](https://discourse.vtk.org/t/qwidget-and-the-vtkcontextview/2907/2 "2020-03-30T01:48:48Z")

</div>

Do not duplicate your topic.

> [@How can i integrate the QWidget and the vtkContextView?](https://discourse.vtk.org/t/how-can-i-integrate-the-qwidget-and-the-vtkcontextview/2895):
>
> How can i integrate the vtkContextView withe the Qt’widget like QVTKＷＩｇｅｔ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [March 30, 2020, 1:48am UTC](https://discourse.vtk.org/t/qwidget-and-the-vtkcontextview/2907/3 "2020-03-30T01:48:50Z")

</div>


