Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.12.0
-
None
-
chrome os / linux container
Description
Created a new qml project from empty.
added a folder outside of Qt, in which two images were copied.
In designer, I selected and dropped a rectangle, and colored it blue.
Then I dropped an image element and clicked on it and went into
the "img" folder and selected the first image. Then I did the same
for the second image.
In the designer the images appear inside of the rectangle.
When I run the build and run the application all I see is the
blue rectangle.
Not suggesting a solution, But.
Don't blame it on user error and close this issue.
If you allow it and it violates your 'assumptions"
then you have the wrong assumptions. If an error
has a probability > 0, trust me it will occur because
of the result of "large numbers" Murphy's law, and at
the worst possible time.
I see a cause: I added the images to the QML file when
the tool presented me with a general "files selection" dialog.
It should have looked at the "RESOURCES" definition in the
.pro file and in all of the qrc files found in that search, rather
than allow me to choose any file anywhere.
Or if you are going to let me choose any file, than check it
against all of the valid qrc file definitions and ask "do you want
to add this file to the project?"
You might also want to apply this to other resources such as
qml files. When I create a new qml file under the editor, you
add the file to the project (DISTFILE in .pro if selected) but it is not added as a resource
to the project. You have a "configure" for other purposes from what I can tell.
how about asking to add it to the RESOURCES definitions.
// -------------------------------------------------------------------------------------------------
See the two attached screen shots (sorry I can't do that because
the drag and drop into the element belows says there is something
about a missing "token" in the screen image?