When I installed Qt earlier today, I selected the two msvc2010 compilers (which I don’t have yet, I have 2008), and the minGW compiler. There was one error during installation:
Error during installation process (qt.511.win32_mingw48.essentials):
Running ‘C:\Qt\5.1.1\mingw48_32\bin\qmake.exe’ resulted in a crash.
After reading a post about this error I clicked retry and the installation finished, just as the post said it would.
Next I ran the example analog clock which work fine.
Then I tried the Tutorial with the logo moving between the three rectangles. In following the tutorial I unchecked the two MSVC2010 compilers, leaving the minGW. but got this cryptic error:
Microsoft Visual C++ Runtime Library
—————————————-
Runtime Error!
Program: …esktop_Qt_5_1_1_MinGW_32bit-Debug\debug\Transitions2.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
Then I saw this note in the tutorial:
Note: The QML types used in this example are also supported in Qt Quick 1. To create this example application for platforms that run Qt 4, select Qt Quick 1 Application (Built-in Types).
So I tried again using “Qt Quick 1 Application (Built-in Types)”.
This then compiled and ran okay.
Continuing with tutorial, when I got to the step:
To use the states.png image in your application, you must copy it to the project directory (same subdirectory as the QML file) from the examples directory in the Qt installation directory. For example: C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states. The image appears in the Resources pane. You can also use any other image or a QML type, instead.
The path didn’t quite match but I did find the file and copied it to the correct directory using Windows Explorer.
The default location I used during installation gave me:
C:\Qt\5.1.1\mingw48_32\examples\declarative\animation\states
Not:
C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states
(I understand the msvc2010 vs mingw48_32 in my case)
But the file does not show in the “Resources pane”. Actually I don’t even see the “Resources pane” at this point in following the tutorial.
Next it says:
1. In the Projects view, double-click the main.qml file to open it in the code editor.
Well its already open as shown in the previous screen shot in the tutorial, so double-clicking does nothing.
Continuing on to step 5:
5. In the Library view, Resources tab, select states.png and drag and drop it to the canvas.
I eventually find the “Resources tab” in the Library View but the states.png file is not there.
I also notice that the other tab (to the left of the Resource tab) is not “Items” but “QML Types”.
And since the file is not there I am stuck (and very frustrated from all the inconsistencies encountered along the way).
So I am not pleased.
What should I do?
↧