1

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?

RobotHumans
  • 29,530

1 Answers1

1

See this bug report:

https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/805303

to run in the mean time install qt4-qtconfig and change away from the default of gtk+ gui styles.

Steve
  • 26