#876704 qt4-demos: QML examples in qt4-demos fail to run, /qmlapplicationviewer in wrong location

#876704#5
Date:
2017-09-24 23:24:07 UTC
From:
To:
Dear Maintainer,

Open a qt4 QML demo in QT creator (notably the Dial Control but happens with other examples too)
fails with tne message:
Could not copy file "/usr/share/qt4/doc/html/helper/qmlapplicationviewer" to
 "/home/user/dialcontrol/qmlapplicationviewer"

The real location of the requested directory and files is:
/usr/lib/qt4/demos/helper/qmlappicationviewer

Clearly the above location must be changed.
Copying the directory with to:
/home/user/dialcontrol/
Solves the main problem. But the example won't run either unless you change in main.cpp
the line:
viewer.setMainQmlFile(QLatin1String("/qml/dialcontrol/dialcontrol.qml"));

to:

viewer.setMainQmlFile(QLatin1String("/dialcontrol/qml/dialcontrol/dialcontrol.qml"));

Very frustrating for someone who is trying to learn qt.
I have no idea if the same happens with qt5-demos


*** End of the template - remove these template lines ***

#876704#10
Date:
2017-09-25 13:19:59 UTC
From:
To:
Hi Wendigo!

Thanks for the bug report!

Please please please stop using Qt4. It's dead upstream and we are
currently trying to remove it from the archive. Do not heasitate:
switch to qt5.

Cheers, Lisandro.

#876704#15
Date:
2017-09-25 17:08:19 UTC
From:
To:
Hi Lizandro!

Yes i will move to QT 5. I was just following VoidRealms tutorial in
YouTube (great tutorial, I'm  learning the basics). I haven't found a
similar tutorial for QT 5.  Guess I'll move to QT 5 in a couple of
months after I finish with the examples in the channel.

Thanks!

#876704#20
Date:
2024-08-04 17:02:39 UTC
From:
To:
-- 
Greeting,

I have access to very vital information that can be used to
move huge amounts of money.

If it was possible for me to do it alone I would not
have bothered contacting you. Ultimately I need you to play an
important role in the completion of this business transaction.

Regards,
Mr Alexander Bulyanda