[PyQt] QValidator and QML
Phil Thompson
phil at riverbankcomputing.com
Fri Jan 25 16:16:31 GMT 2019
On 18 Jan 2019, at 10:18 am, Phil Thompson <phil at riverbankcomputing.com> wrote:
>
> On 16 Jan 2019, at 7:17 pm, Alexander Rössler <machinekoder at gmail.com> wrote:
>>
>> Hello everyone,
>>
>> I'm trying to create a QValidator for QML TextField. However, when I attempt to enter any text, the application segfaults.
>>
>> The problem is reproducible, and I created a demonstration application: https://github.com/machinekoder/pyqt-bug-qml-qvalidator
>>
>>
>> It would be great if someone can help with this problem, as I have no idea how to work around it.
>>
>> I'm using a custom build of PyQt 5.10.1
>
> Custom Python validators are not supported from QML - although I think its possible to do so.
Support will be in tonight's PyQt snapshot - please test.
Phil
More information about the PyQt
mailing list