[Interest] Windows Phone 8.1 (WinRT) field report

Kalinowski Maurice Maurice.Kalinowski at theqtcompany.com
Thu Jan 29 13:49:58 CET 2015


Hi,

> 1.  Don't try to deploy from Qt Creator

As you mentioned yourself, this is a reported bug and we’re trying to fix it.

> 2.  Don't call Qt.quit()    (Many simple Qt Creator wizard generated QML apps do just that)

You can, but the platform design says you are not supposed to. Hence so far it basically did nothing, according to that specs. However as this seems to be a highly requested item and it is not preventing app certification that is fixed in the next release.

> 3.  Don't have onPressAndHold in your MouseAreas
Good catch, fix waiting for integration.
Could you please create a report on your emulator related issues so that we can have a look?

BR,
Maurice



Von: interest-bounces+maurice.kalinowski=theqtcompany.com at qt-project.org [mailto:interest-bounces+maurice.kalinowski=theqtcompany.com at qt-project.org] Im Auftrag von Harri Pasanen
Gesendet: Thursday, 29 January, 2015 10:23 AM
An: interest at qt-project.org
Betreff: [Interest] Windows Phone 8.1 (WinRT) field report

I made another attempt at running apps on Lumia 530 and finally made some progress.
First the 3 don't:
1.  Don't try to deploy from Qt Creator
2.  Don't call Qt.quit()    (Many simple Qt Creator wizard generated QML apps do just that)
3.  Don't have onPressAndHold in your MouseAreas
The related bugreports are
1. https://bugreports.qt.io/browse/QTBUG-42950
2. https://bugreports.qt.io/browse/QTBUG-43862
3. https://bugreports.qt.io/browse/QTBUG-44196
The last one was very misleading, as I had a "virtual" onPressAndHold for practically all my QML items, so it appeared as if no touch events were registering at all.

Other notes:
You can run against WinRT desktop from QC.  That is the fastest way, even a small app deploy on phone takes a while.
I was not able to run anything on the emulator from QC either.  There it failed even earlier than when deploying on phone with the message:
Error while building/deploying project test1 (kit: Qt 5.4.1 for Windows Phone x86 MSVC2013 32bit (Emulator))

When executing step "Run windeployqt"



To launch a command prompt to prepare for building and running in Visual Studio, I created two helper batch files with shortcuts on the desktop.


qtemu.bat for running in emulator



--8<-------8<-------8<----
call c:\dev\vs2013pro\VC\vcvarsall.bat
set PATH=c:/Qt/Qt5.4.1/5.4/winphone_x86/bin;%path%
cd \users\harri\Documents
echo "Do: qmake -tp vc <your project>.pro "CONFIG+=windeployqt""
cmd

--8<-------8<-------8<----

qtarm.bat for building for phone:

--8<-------8<-------8<----
call c:\dev\vs2013pro\VC\vcvarsall.bat
set PATH=c:/Qt/Qt5.4.1/5.4/winphone_arm/bin;%path%
cd \users\harri\Documents
echo "Do: qmake -tp vc <your project>.pro "CONFIG+=windeployqt""
cmd

--8<-------8<-------8<----



Note that I have Visual Studio 2013 pro installed under c:/dev/ directory, so you may need to tweak the paths.



so when the shell is open, do something like

mkdir buildtest
cd buildtest
qmake -vc ..\test1\test1.pro<http://test1.pro> "CONFIG+=windeployqt"
And then open the generated test1 Visual Studio project in VS2013 and you are good to go.

So now there is some hope for winRT.  Some look-and-feel this are that ScrollAreas look butt-ugly by default and so does Menu.popup(), but those are not show stoppers and can be worked around.
Hope this helps someone.
Harri

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150129/aceae968/attachment.html>


More information about the Interest mailing list