Skip to content
New issue

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

SmoothFadeImage error #30

Closed
plfiorini opened this issue Aug 21, 2016 · 3 comments
Closed

SmoothFadeImage error #30

plfiorini opened this issue Aug 21, 2016 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@plfiorini
Copy link
Member

file:///opt/qmlos/lib/qml/Fluid/Controls/SmoothFadeImage.qml:196:35: Unable to assign [undefined] to QSizeF

@plfiorini plfiorini added the bug Something isn't working label Aug 21, 2016
@plfiorini plfiorini added this to the Post 1.0 milestone May 19, 2017
@luntik2012
Copy link
Contributor

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:

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.

@plfiorini
Copy link
Member Author

@luntik2012 Use = instead of == to set the source property of img.

@plfiorini plfiorini self-assigned this Jan 21, 2018
@plfiorini plfiorini modified the milestones: Post 1.0, 1.0 Jan 21, 2018
@luntik2012
Copy link
Contributor

lol) copy-paste forever... sorry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants