![]() Go to the right-most end of the "Variable value:" field by either clicking within the field and pressing END on your keyboard or scrolling to the end with your mouse.Double click or select the "Path" variable and press "Edit.".Under the "System variables" groupbox, scroll through the list and find the "Path" variable.Press the "Environment Variables." button, located below the third groupbox and above the OK/Cancel button.Navigate to "Control Panel" -> "System" -> "Advanced system settings".Option 1: (persistent) Using the control panel.Add Qt's Desktop mingw bin path and Qt's mingw bin path to the PATH system variable with one of the two options:.For this example, I installed the Qt SDK to C:\QtSDK. These are alternative steps using a windows system and mingw which comes with Qt. Place the following import statement in any qml file to use Qt desktop components:.Open the qmldir file inside the components folder in any text editor and observe the version number on each line (e.g.Place it in "your Qt directory"\imports\Qt\labs.Copy the "components" folder from where you extracted the qt desktop components.Navigate in command prompt to the folder where you extracted the qt desktop components.Set command prompt to use Qt's bin path.SET PATH=%PATH% C:\Qt\qtcreator-2.1.0\bin Set command prompt to use Qt Creator's bin path.You should receive a message similar to: "Setting environment for using Microsoft Visual Studio 2008 x86 tools" "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" (usually C:\Program Files\Microsoft Visual Studio 9.0\VC\bin) in command prompt.Į.g. run vcvars32.bat from "your Visual Studio"\VC\bin\ directory.Here are more detailed instructions that I made: I used the instructions from the answer for this question: Qt How to make and install plugins? and was able to successfully use the qt quick desktop components within qt creator qml files.
0 Comments
Leave a Reply. |