Trouble with examples
-
I'm new to Qt and have recently installed v5.3.1 on Windows XP sp3. To familiarize myself with the system, I have tried some of the examples. Most work fine, but a few give errors, don't work completely or crash.
-
In the basiclayouts example, the dialog box displays correctly, but the text in the text boxes and labels is completely unintelligible (although it's OK when cut and pasted somewhere else).
-
When switching from Edit to Design for just about any qml file produces the error "Qt Quick emulation error crashed (1:0)"
-
shadereffects crashes.
What have I done wrong?
-
-
Hi, and welcome to the Qt Dev Net!
Which Qt package did you download? (There are several different Qt 5.3.1 packages)
[quote]1. In the basiclayouts example, the dialog box displays correctly, but the text in the text boxes and labels is completely unintelligible (although it’s OK when cut and pasted somewhere else).[/quote]I'm not sure about this one. What happens if you resize the dialog?
[quote]2. When switching from Edit to Design for just about any qml file produces the error “Qt Quick emulation error crashed (1:0)”
- shadereffects crashes.[/quote]These sound like graphics driver issues. What graphics card are you using? Are your graphics drivers up to date? Are you running a real machine or virtual machine?
-
I downloaded qt-opensource-windows-x86-msvc2010_opengl-5.3.1.exe.
Resizing the dialog has no effect (except that the unintelligible text gets smaller).
I'm using the Intel HD on-board graphics (ASUS motherboard). There seems to be a newer driver, but I'm having trouble installing it.
-
Qt Quick requires OpenGL 2.0 or higher to work. Most on-board graphics chips don't support that. Does yours?
Install the non-OpenGL Qt packages instead, and see if that helps/
-
Actually, Intel HD Graphics is not "on-board" but part of the CPU. So I have a Core i5-650 with Intel HD Graphics. In the Developer's Guide for Intel® Processor Graphics for 4th Generation Intel® Core™ Processors, Table 1.1 shows a comparison of 3rd and 4th generation processors. 3rd generation processors support OpenGL 4.0 and 4th generation processors support OpenGL 4.2. So I think this is OK.
I was going to try and install the package without OpenGL, but it's for Visual Studio 2013 and I'm using the 2010 version. Is there a way to disable/bypass OpenGL in the version I have?
In trying to work through the tutorial Introduction to Application
Development with Qt Quick, I got as far as NightClock.qml. When I run this, the clock is displayed on the screen with the correct time, but then everything freezes and only power off/power on works to recover. -
[quote author="roog49" date="1407501653"]Actually, Intel HD Graphics is not "on-board" but part of the CPU. So I have a Core i5-650 with Intel HD Graphics. In the Developer's Guide for Intel® Processor Graphics for 4th Generation Intel® Core™ Processors, Table 1.1 shows a comparison of 3rd and 4th generation processors. 3rd generation processors support OpenGL 4.0 and 4th generation processors support OpenGL 4.2. So I think this is OK.[/quote]Ah, you're right. That should be ok then.
[quote]I was going to try and install the package without OpenGL, but it's for Visual Studio 2013 and I'm using the 2010 version. Is there a way to disable/bypass OpenGL in the version I have?[/quote]Unfortunately not... the graphics backend is fixed.
Would you be willing to try compiling Qt yourself? I can provide detailed instructions. The process will likely take a few hours, however.
[quote]In trying to work through the tutorial Introduction to Application
Development with Qt Quick, I got as far as NightClock.qml. When I run this, the clock is displayed on the screen with the correct time, but then everything freezes and only power off/power on works to recover.[/quote]A full-system freeze sounds like a low-level driver issue.Are you using Qt Quick 1 or Qt Quick 2?
Also, do you have access to any other PCs?
-
The PC on which Qt is installed is the most up-to-date one. The others are even more likely to have driver issues. However, since install/uninstall of Qt is straightforward and demonstrating the problem is easy, I will try one of them.
As for building Qt myself: Yes if "a few hours" means set it up and let it build unattended. No, if it requires hours of constant interaction.
I'm using Qt 2.2.
-
On another system, it seems to work OK although I only had time to try one Quick app. The main difference is the graphics: GeForce 7300GT graphics card with driver from 2013. The CPU is an older Core2 Duo.
So it looks like the problem is with the graphics hardware/driver, but I can imagine there are many people who are using Intel HD Graphics.
-
[quote author="roog49" date="1408544249"]On another system, it seems to work OK although I only had time to try one Quick app. The main difference is the graphics: GeForce 7300GT graphics card with driver from 2013. The CPU is an older Core2 Duo.
So it looks like the problem is with the graphics hardware/driver, but I can imagine there are many people who are using Intel HD Graphics.[/quote]It's not easy to pinpoint the root of hardware issues, unfortunately. Are you happy to use the other system?
Since there seems to be a hardware/driver issue, I'm less confident that building Qt yourself would make things better, but here are the steps if you want to try:
Install "Perl":http://www.activestate.com/activeperl/downloads, make sure it's in your PATH
Install "Python 2.x":https://www.python.org/downloads/ (not 3.x!), make sure it's in your PATH
Install the "DirectX SDK":http://www.microsoft.com/en-au/download/details.aspx?id=6812
Download the "Qt source code":http://download.qt-project.org/official_releases/qt/5.3/5.3.1/single/qt-everywhere-opensource-src-5.3.1.zip and extract it to C:\Qt\src\
Using your Developer Command Prompt for VS2010, navigate to C:\Qt\src\
Configure Qt by entering:
@
configure.bat -prefix "C:/Qt/Custom/5.3.1/msvc2010" -opensource -confirm-license -nomake examples -nomake tests -mp -skip qtwebkit
@(Replace "C:/Qt/Custom/5.3.1/msvc2010" with a path of your choice)
Then, build and install:
@
nmake
nmake install
@ -
I will be using the other system, when it's available.
Since there must be many others out there who use Intel HD graphics (perfectly suitable for developing Qt applications), and since it doesn't seem that anyone has reported similar problems, it must be my particular instance that is somehow screwed up. So, it being over 4 years old, I have decided to replace it.
Not a direct solution to the problem, but it's just not worth it to pursue this any longer.Thank you very much for you help.
-
You're welcome. All the best.