Inside the root Item{} I cannot even show a regular Button. It is not clear to me how to do it. Can you explain a little bit more?
Inside the root Item{} I cannot even show a regular Button. It is not clear to me how to do it. Can you explain a little bit more?
What's the content item of you "ApplicationWindow" element?
Cheers,
_
My ApplicationWindow {} did not have a contentItem, but it is Item {} now, and "contentItem:" is a non-existent property of Item {}. So how to show a Button?
Ok, so you had an empty window with just the ToolBar, I though that you maybe already had some content in your window.
In QtQuick, to show something you only need to instantiate it, potentially provide values for size if it doesn't have an implicit one.
Qt Code:
import QtQuick 2.0 Rectangle { width: 100 height: 100 color: "blue" }To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks