You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Ghostkeeper
there is a question ,but I have import UM. How can I do ?
"ReferenceError: screenScaleFactor is not defined"
Thank s!
import UM 1.1 as UM //This allows you to use all of Uranium's built-in QML items.
import QtQuick 2.2 //This allows you to use QtQuick's built-in QML items.
import QtQuick.Controls 1.1
UM.Dialog //Creates a modal window that pops up above the interface.
{
id: base
width: 150 * screenScaleFactor
height: 50 * screenScaleFactor
minimumWidth: 150 * screenScaleFactor
minimumHeight: 50 * screenScaleFactor
Label //Creates a bit of text.
{
//This aligns the text to the top-left corner of the dialogue window.
anchors.top: base.top //Reference the dialogue window by its ID: "base".
anchors.topMargin: 10 * screenScaleFactor
anchors.left: base.left
anchors.leftMargin: 10 * screenScaleFactor
text: "Hello!"
}
import UM 1.1 as UM
QML module not found UM ?
how to import this moduel?
The text was updated successfully, but these errors were encountered: