发现一个问题,Qt5.9里的QtCreator。。。。。安装UWP程序的时候,总是用的appx profile,这导致了,安装for windows 10的时候是可以的,但安装for windows phone的时候,就出问题了(应该用appxphone profile),我还试验了一下Qt 5.8,它是正常的(默认是appxphone,但安装for windows 10的时候,会自动加--profile appx)
安装命令:
winrtrunner.exe --device 0 --test --wait 0 --profile appx example.exe
Qt 5.8,默认profile是appxphone,但for windows 10时,会自动加--profile appx(在Qt Creator里总是可以正确安装)
Qt 5.9,默认profile是appx,但for windows phone时,不会自动加--profile appxphone(这就导致了需要手工敲这个命令加profile参数来正确安装)
=========================================
现在不太清楚,这个算是Qt 5.9 UWP的一个问题,还是说是其它项目参数方面没设置好。。。。
另外:Qt Widgets程序,可以编译运行为UWP程序,在WIndows 10下可以执行(当然有些部件显示效果不太好),但在WIndows Phone上不可以执行。