MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011852 | VTK | (No Category) | public | 2011-02-14 07:46 | 2013-07-22 19:57 |
Reporter | thorbenk | ||||
Assigned To | Clinton Stimpson | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Gentoo Linux | OS | Linux | OS Version | 2.6.34-gentoo |
Product Version | |||||
Target Version | Fixed in Version | 5.10.0 | |||
Project | TBD | ||||
Type | incorrect functionality | ||||
Summary | 0011852: QVTKWidget and QVTKWidget behave differently; resizing breaks interactor for QVTKWidget2 | ||||
Description | The attached small python test case shows some problems with QVTKWidget and QVTKWidget2. I'm using the latest VTK built from git HEAD. 1.) QVTKWidget and QVTKWidget2 behave differently. When the mouse moves over the plane, it gets highlighted green for QVTKWidget but no highlighting happens for QVTKWidget2. Is this a bug or a feature? To reproduce, run python test-qvtkwidget.py 1 // to use QVTKWidget python test-qvtkwidget.py 2 // to use QVTKWidget2 2.) Try resizing the window when using QVTKWidget2 (see above). Now the plane cannot be dragged anymore. I have tracked this problem down, one can work around this by resizing the interactor in a resizeEvent like this: def resizeEvent(self, event): #ordering is important here #1.) Let the QVTKWidget2 resize itself QVTKWidget2.resizeEvent(self,event) w,h = self.width(), self.height() #2.) Make sure the interactor is assigned a correct new size self.renderWindow.GetInteractor().SetSize(w,h) | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | python, qt | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/8693/test-qvtkwidget.py ![]() https://www.vtk.org/Bug/file/8720/test-qvtkwidgetInLayout.py ![]() https://www.vtk.org/Bug/file/8721/screenShotForOption3.png ![]() https://www.vtk.org/Bug/file/8727/test-qvtkwidget2_TestCaseWindowsTranparency.py | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-02-14 07:46 | thorbenk | New Issue | |||
2011-02-14 07:46 | thorbenk | File Added: test-qvtkwidget.py | |||
2011-02-23 08:17 | Christoph Sommer | File Added: test-qvtkwidgetInLayout.py | |||
2011-02-23 08:19 | Christoph Sommer | File Added: screenShotForOption3.png | |||
2011-02-23 08:26 | Christoph Sommer | Note Added: 0025560 | |||
2011-02-23 08:45 | Oliver Petra | Note Added: 0025561 | |||
2011-02-23 09:23 | thorbenk | Tag Attached: python | |||
2011-02-23 09:23 | thorbenk | Tag Attached: qt | |||
2011-02-23 18:57 | Clinton Stimpson | Note Added: 0025566 | |||
2011-02-24 03:32 | thorbenk | Note Added: 0025569 | |||
2011-02-24 05:15 | Christoph Sommer | File Added: test-qvtkwidget2_TestCaseWindowsTranparency.py | |||
2011-02-24 05:18 | Christoph Sommer | Note Added: 0025571 | |||
2011-02-24 07:55 | Oliver Petra | Note Added: 0025573 | |||
2011-02-25 23:23 | Clinton Stimpson | Assigned To | => Clinton Stimpson | ||
2011-02-25 23:23 | Clinton Stimpson | Status | backlog => tabled | ||
2011-02-25 23:24 | Clinton Stimpson | Note Added: 0025586 | |||
2011-06-16 13:12 | Zack Galbreath | Category | Development => (No Category) | ||
2011-10-03 17:32 | Clinton Stimpson | Project | => TBD | ||
2011-10-03 17:32 | Clinton Stimpson | Type | => incorrect functionality | ||
2011-10-03 17:32 | Clinton Stimpson | Status | backlog => todo | ||
2011-10-03 17:32 | Clinton Stimpson | Resolution | open => fixed | ||
2011-10-03 17:32 | Clinton Stimpson | Fixed in Version | => 5.8 | ||
2011-10-03 17:32 | Clinton Stimpson | Status | todo => active development | ||
2013-07-22 19:57 | Dave DeMarle | Status | active development => closed | ||
2013-07-22 19:57 | Dave DeMarle | Fixed in Version | 5.8 => 5.10.0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|