[vtkusers] QVTKWidget2 window flickered
septem
septem.wu at gmail.com
Thu Aug 30 20:34:26 EDT 2012
I wrote a simple test app.
import sys
import PyQt4.QtCore as QtCore
import PyQt4.QtGui as QtGui
import PyQt4.QtOpenGL as QtOpenGL
def createGLStackedWindow():
stacked = QtGui.QStackedWidget()
widget1 = QtGui.QWidget()
layout1 = QtGui.QGridLayout()
layout1.addWidget(QtOpenGL.QGLWidget(),0,0)
layout1.addWidget(QtOpenGL.QGLWidget(),0,1)
layout1.addWidget(QtOpenGL.QGLWidget(),0,2)
widget1.setLayout(layout1)
widget2 = QtGui.QWidget()
layout2 = QtGui.QGridLayout()
layout2.addWidget(QtOpenGL.QGLWidget(),0,0)
widget2.setLayout(layout2)
widget3 = QtGui.QWidget()
layout3 = QtGui.QGridLayout()
layout3.addWidget(QtOpenGL.QGLWidget(),0,0)
layout3.addWidget(QtOpenGL.QGLWidget(),0,1)
layout3.addWidget(QtOpenGL.QGLWidget(),1,0)
layout3.addWidget(QtOpenGL.QGLWidget(),1,1)
widget3.setLayout(layout3)
stacked.addWidget(widget1)
stacked.addWidget(widget2)
stacked.addWidget(widget3)
return stacked
def createMainWindow():
wnd = QtGui.QWidget()
layout = QtGui.QVBoxLayout()
combobox = QtGui.QComboBox()
stacked = createGLStackedWindow()
for x in range(stacked.count()):
combobox.addItem(str(x))
layout.addWidget(combobox)
layout.addWidget(stacked)
QtCore.QObject.connect(combobox,
QtCore.SIGNAL('currentIndexChanged(int)'),stacked.setCurrentIndex)
wnd.setLayout(layout)
return wnd
if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
wnd = createMainWindow()
wnd.show()
app.exec_()
And QGLWidget is flickering when Aero is on.
There is no flickering when Aero is off.
Maybe it is not only a Qt bug, but also a VTK bug...
Thank you.
Clinton Stimpson wrote
>
> I doubt its causing this flicker, because VTK 5.10 doesn't contain that
> fix. A
> request to put that fix in VTK 5.10.1 has been made.
>
> What I typically do to find if its a Qt bug or a VTK bug is to make a
> similar
> test app that doesn't use VTK, but uses QGLWidget, then compare the
> behavior
> of that with the one using VTK.
> Perhaps septum can try that.
>
> Clint
>
> On Thursday, August 30, 2012 03:27:02 PM Alex Malyushytskyy wrote:
>> If we are talking about bug below:
>>
>> https://bugreports.qt-project.org/browse/QTBUG-23425?page=com.atlassian.jira
>> .plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=177374#comme
>> nt-177374
>>
>> It only happened with Aero off (not on)
>> I think the work around was found, but hope this fix was not causing
>> flickering .
>>
>> Alex
>>
>> On Wed, Aug 29, 2012 at 6:46 PM, septem <septem.wu@> wrote:
>> > Thank you very much.
>> > I turned off Aero, and there was no flickering.
>> > Is this Qt's bug or VTK's bug?
>> >
>> > John Drescher-2 wrote
>> >
>> >> On Wed, Aug 29, 2012 at 8:56 PM, septem <septem.wu@> wrote:
>> >>> I am working on Windows7 with Qt4.8.2 and VTk5.10.
>> >>> All are x64.
>> >>> Thank you.
>> >>
>> >> I vaguely remember a bug (not sure if it was fixed) where the window
>> >> could flicker if Aero was turned off. Could this be the case?
>> >>
>> >> John
>> >> _______________________________________________
>> >> Powered by www.kitware.com
>> >>
>> >> Visit other Kitware open-source projects at
>> >> http://www.kitware.com/opensource/opensource.html
>> >>
>> >> Please keep messages on-topic and check the VTK FAQ at:
>> >> http://www.vtk.org/Wiki/VTK_FAQ
>> >>
>> >> Follow this link to subscribe/unsubscribe:
>> >> http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>> > --
>> > View this message in context:
>> > http://vtk.1045678.n5.nabble.com/QVTKWidget2-window-flickered-tp5715588
>> > p5715675.html Sent from the VTK - Users mailing list archive at
>> > Nabble.com.
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the VTK FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> --
> Clinton Stimpson
> Elemental Technologies, Inc
> Computational Simulation Software, LLC
> www.csimsoft.com
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget2-window-flickered-tp5715588p5715714.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list