[PyQt] [Bug report] PyQt5 doesn't work properly with centralWidget with layout, window not shown but produces lots of errors
Phil Thompson
phil at riverbankcomputing.com
Tue Apr 14 18:50:08 BST 2015
On 09/04/2015 1:08 pm, flanker017 wrote:
> Hi:
>
> PyQt version: 5.4.1
> sip version: 4.16.7
> Python version: 2.7.9 on Ubuntu 12.04 64bit
> Qt version: Qt 5.3.2 x64
>
> If we use ui designer to design a mainwindow, put two widgets in it
> (i.e.
> TextBrowser), then use Horizontally layout on the two widgets. One
> would
> expect two widgets sit from left to right, each consuming half of
> window
> space.
>
> However, pyqt5 failed to show up the mainwindow, showing a lot of
> errors.
> If one removes the layout, then it will be fine. The Gtk-CRITICAL error
> messages appears in both situations, so I think this is not important.
> However, lines of logs marked with * are newly appeared when a layout
> is
> used and pyqt is not working properly.
>
> The same layout file works on Qt Creator's C++ Qt5.
Works fine for me with current versions.
Phil
More information about the PyQt
mailing list