[PyQt] adding in a QTextEdit widget as the central widget makes main window not pop up, and showMaximize causes computer crash?

Brian Merchant bhmerchant at gmail.com
Sun Dec 13 04:16:09 GMT 2015


Hi all,

I have some skeleton code as shown here:
https://gist.github.com/bmer/e4760c49d1a9c7396c33

If run this code as is (python qt_problem.py), then everything works okay.
However, if I un-comment the lines that add a QTextEdit widget, in initUI,
I get the following warnings appearing:

(python:1949): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion
'GTK_IS_WIDGET (widget)' failedQWidget::setMinimumSize: (/Editor) The
largest allowed size is (16777215,16777215)

The window that would otherwise pop-up doesn't, but I can still close up
the application. Instead, if in main I have main.showMaximized() rather
than main.show(), I cause my computer to crash. This does not happen if I
don't have a QTextEdit widget set as the central widget, since otherwise, a
normal, maximized window appears.

Any ideas regarding what's happening? I would be so grateful if I could get
past this!


Kind regards,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151212/62a06b41/attachment.html>


More information about the PyQt mailing list