We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file:///opt/qmlos/lib/qml/Fluid/Controls/SmoothFadeImage.qml:196:35: Unable to assign [undefined] to QSizeF
The text was updated successfully, but these errors were encountered:
You can use Qt.size(undefined, undefined) (there will be QSizeF(nan, nan)) But for me source not changing at all. I do something like this:
Qt.size(undefined, undefined)
QSizeF(nan, nan)
source
Timer { interval: 1000 repeat: true triggeredOnStart: false onTriggered: { console.log("triggered") if(img.source == "qrc:/img/locomotive.png") { console.log("set qrc:/img/barbell.svg") img.source == "qrc:/img/barbell.svg" } else { console.log("set qrc:/img/locomotive.png") img.source == "qrc:/img/locomotive.png" } console.log(img.source) } Component.onCompleted: start() }
source is always the same and onSourceChanged is called once onCompleted.
onSourceChanged
Sorry, something went wrong.
@luntik2012 Use = instead of == to set the source property of img.
=
==
img
da7bec6
lol) copy-paste forever... sorry)
plfiorini
No branches or pull requests
file:///opt/qmlos/lib/qml/Fluid/Controls/SmoothFadeImage.qml:196:35: Unable to assign [undefined] to QSizeF
The text was updated successfully, but these errors were encountered: