[vtkusers] VTK widget "border" width

abstracted jds0447 at unt.edu
Wed Oct 29 14:55:39 EDT 2014

Some quick background:
I have been developing a program that integrates VTK into a GUI designed
with Qt. Thus I have been using the QVTKRenderWindowInteractor for Qt
integration. Below is a code snippet that shows how I initialize all of the
VTK business.

class modelView(QMainWindow):
    def setupUi(self):


        self.frame = QFrame()
        self.vl = QVBoxLayout()
        self.vtkWidget = QVTKRenderWindowInteractor(self.frame)
        self.ren = vtkRenderer()
        self.iren = self.vtkWidget.GetRenderWindow().GetInteractor()

Now for my actual question, it appears as though the render window has a
border around it. I.e. the outline is offset by some amount. The image below
shows what I am attempting to say. The top cropped image comes from a
different program written in Qt, the two left widgets are dockwidgets and
the right is a QGraphicsView (I think). The bottom image is cropped from my
program, the same setup but thee right widget is a VTK render window. You
can see the difference in "border width", if that's a thing.

My curiosity got the best of me, and I am now curious as to how this happens
and if you change it (it looks odd to me).


View this message in context: http://vtk.1045678.n5.nabble.com/VTK-widget-border-width-tp5729287.html
Sent from the VTK - Users mailing list archive at Nabble.com.

More information about the vtkusers mailing list