[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: icon.source property not working in QML Button?
From: Belz Ulrich <ulbemu () mnet-online ! de>
Date: 2022-05-03 18:33:11
Message-ID: 7b38113d-3c5c-296e-43fe-eb8edccc734d () mnet-online ! de
[Download RAW message or body]
Indeed, after upgrading to 6.3.0, it works. Thank you very much.
Am 03.05.2022 um 04:27 schrieb Yuya Nishihara:
> On Mon, 2 May 2022 23:26:15 +0200, Belz Ulrich wrote:
>> It looks like the icon.source property of a QML Button is not working
>> (PyQt 6.2.2). The referenced image is not shown. Example to reproduce:
>> Button {
>> id: button
>> x: 200
>> y: 100
>> width: 48
>> height: 48
>> visible: true
>> display: Button.IconOnly
>> icon.source: "./icon-arrow-down-red.png"
> Basically you need to wrap relative paths with Qt.resolvedUrl() in Qt 6.
>
> There's a significant behavior change regarding relative path (or URL)
> resolution, and icon.source is broken until Qt 6.2.5.
>
> https://doc.qt.io/qt-6/qml-changes-qt6.html#url-resolution
> https://bugreports.qt.io/browse/QTBUG-95587
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic