I've upgraded to Ubuntu 11.10 and I have a strange problem.
PyQt apps, like ReText and the one below, cause window manager to go crazy.
Metacity crashes, Compiz hangs, GNOME Shell / Mutter displays a window with parts of my wallpaper inside.
Example script that causes the problem (which draws a window with QTextEdit and QToolBar):
import sys
from PyQt4.QtCore import Qt
from PyQt4.QtGui import *
app = QApplication(sys.argv)
window = QMainWindow()
editBox = QTextEdit(window)
toolBar = QToolBar(window)
window.setCentralWidget(editBox)
window.addToolBar(Qt.TopToolBarArea, toolBar)
window.show()
sys.exit(app.exec_())
I get these warnings in the output:
(python:3489): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
and
QWidget::setMinimumSize: (/QMainWindow) The largest allowed size is (16777215,16777215)
What can cause this problem?
ubuntu-bug python-qt4
to report this. – dv3500ea Sep 11 '11 at 15:16