[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: pyuic5 bug with QFontComboBox
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2021-10-07 10:30:21
Message-ID: bb508a1ffddfed73ec0ccef36b3d39f8 () riverbankcomputing ! com
[Download RAW message or body]

On 06/10/2021 20:52, Baz Walter wrote:
> When using PyQt-5.15.4, the ui compiler cannot handle QFontDatabase 
> enums.
> 
> The minimal test-case below raises the following exception:
> 
>     PyQt5.uic.exceptions.NoSuchClassError: Unknown C++ class: 
> QFontDatabase
> 
> Test-case:
> 
>     from io import StringIO
>     from PyQt5 import uic, QtWidgets
> 
>     app = QtWidgets.QApplication(['test'])
> 
>     uic.loadUiType(StringIO("""\
>     <?xml version="1.0" encoding="UTF-8"?>
>     <ui version="4.0">
>      <class>Form</class>
>      <widget class="QWidget" name="Form">
>       <widget class="QFontComboBox" name="fontComboBox">
>        <property name="writingSystem">
>         <enum>QFontDatabase::Latin</enum>
>        </property>
>       </widget>
>      </widget>
>      <resources/>
>      <connections/>
>     </ui>
>     """))
> 
> (NB: ui file was generated by Qt Designer 5.15.2)

Should be fixed in the next snapshot.

Thanks,
Phil
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic