[PyQt] Question about the segmentation fault induced by uic.loadUiTyp

Hans-Peter Jansen hpj at urpla.net
Mon Mar 19 18:11:18 GMT 2018


On Montag, 19. März 2018 09:35:49 lzf neu wrote:
> Hi Florian,
> 
> Thanks for your reply. The whole script that I referenced from the website
> is as follows:
> http://pythonforengineers.com/your-first-gui-app-with-python-and-pyqt/

For the record: apart from the immaturity of this stuff, it works with recent 
versions of PyQt4 here, that are:

Python: 2.7.12
Sip: 4.19.7
Qt4: 4.8.6
PyQt4: 4.12.1

Just to get you back onto a sane track, here's this very example with a few 
tweaks, that:

	* is based on PyQt5
	* uses the correct widgets
	* uses layouts (try resizing)
	* formats currency
	* adheres to PyQt common sense (import format)

A currency aware edit widget is missing in Qt for the time being.

Cheers,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: taxrate.py
Type: text/x-python
Size: 1205 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180319/f4885484/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: taxrate.ui
Type: application/x-designer
Size: 3708 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180319/f4885484/attachment.bin>


More information about the PyQt mailing list