• May 01, 2024, 08:40:02 pm

Author Topic: Qt Quick Components for S60V5  (Read 8101 times)

0 Members and 1 Guest are viewing this topic.

Offline yeatse

  • Developer
  • Viewer
  • ****
  • Posts: 8
  • Reputation: 6
  • Symbian Power User
  • Current Phone: : 808
Qt Quick Components for S60V5
« on: October 24, 2013, 01:38:19 am »
Now almost all the Nokia Belle apps can be easily port to S60V5.

All you need to do is to change all the "import QtQuick 1.1" in your code to "import QtQuick 1.0", and "import com.nokia.symbian 1.1" to "import com.nokia.symbian 1.0", and some other small fixes, then select "S60V5" target and build.

On S60V5 devices, you need to install Qt4.7.3 and QtMobility1.13 first, then install the three plugins attached here.

For example, I changed little code on Dickson's tweetian and now it is runnable on S60V5. I tested it on RDA since I don't have a S60V5 device myself..


[attachment deleted by admin]

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Qt Quick Components for S60V5
« Reply #1 on: October 24, 2013, 12:31:09 pm »
Very nice share, mate! ;)

Offline schumi1331

  • Viewer
  • *
  • Posts: 7
  • Reputation: 0
  • Symbian Power User
  • Current Phone: : Nokia 808 PureView
Re: Qt Quick Components for S60V5
« Reply #2 on: October 24, 2013, 05:53:46 pm »
Is there any chance to bring this into one app that can be submitted to Nokia Store and might pass the QA?

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: Qt Quick Components for S60V5
« Reply #3 on: October 24, 2013, 08:32:03 pm »
Is there any chance to bring this into one app that can be submitted to Nokia Store and might pass the QA?

Of course, as long as smart installer is with it.

@yeatse
Nice work bro ;)
« Last Edit: October 24, 2013, 09:37:50 pm by Allstar12345 »

Offline schumi1331

  • Viewer
  • *
  • Posts: 7
  • Reputation: 0
  • Symbian Power User
  • Current Phone: : Nokia 808 PureView
Re: Qt Quick Components for S60V5
« Reply #4 on: October 24, 2013, 09:31:13 pm »
Of course, as long as smart installer is with it.

Grrr. Sometimes I don't understand that people don't understand when I'm or anybody else is asking IF it is possible and the answer is YES, it is possible, the question also includes HOW it is possible...  :P

So, how do I pack this files into my app file that they will be installed as well?

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Qt Quick Components for S60V5
« Reply #5 on: October 24, 2013, 09:57:14 pm »
i want to preface this with an apology if i am being helplessly noooooooob, but isn't SISContents able to pack it as a proper installer?
i thought the smart installer was Nokia's addition to an app once it passed QA.
Again, sorry if this is utter rubbish that i am speaking, but i want to learn about the process, too. :-[

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: Qt Quick Components for S60V5
« Reply #6 on: October 24, 2013, 10:02:50 pm »
i want to preface this with an apology if i am being helplessly noooooooob, but isn't SISContents able to pack it as a proper installer?
i thought the smart installer was Nokia's addition to an app once it passed QA.
Again, sorry if this is utter rubbish that i am speaking, but i want to learn about the process, too. :-[

Smart installer is added when we use the Publish to Store function, but I think schumi could extract the files from the installers and use the AddFile function to include them in his project

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Qt Quick Components for S60V5
« Reply #7 on: October 24, 2013, 10:09:59 pm »
SISContents has a batch installer option. You add the installers as individual packages in order of installation priority.
File > New package > Add entry > Embed package
You just have to make sure the package script has them in the correct order, if applicable, for contingency purposes.

Again, though, i apologize if this is not what you are talking about.
i have to ask to learn, even if i look really dumb when doing it.
« Last Edit: October 24, 2013, 10:22:16 pm by matthew »

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: Qt Quick Components for S60V5
« Reply #8 on: October 25, 2013, 03:57:40 am »
I actually meant AddFile in his project file, it would automatically add them everytime he builds

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Qt Quick Components for S60V5
« Reply #9 on: October 25, 2013, 04:23:05 am »
Learn something new: X
Look dumb: X  :P

Offline schumi1331

  • Viewer
  • *
  • Posts: 7
  • Reputation: 0
  • Symbian Power User
  • Current Phone: : Nokia 808 PureView
Re: Qt Quick Components for S60V5
« Reply #10 on: October 25, 2013, 02:22:32 pm »
SISContents has a batch installer option. You add the installers as individual packages in order of installation priority.
File > New package > Add entry > Embed package
You just have to make sure the package script has them in the correct order, if applicable, for contingency purposes.
Perfect, seems to work.

Is it possible to port Qt Quick Components 1.1 as well? Cause all my apps are based on PageStackWindow...

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Qt Quick Components for S60V5
« Reply #11 on: October 25, 2013, 02:53:11 pm »
Is it possible to port Qt Quick Components 1.1 as well? Cause all my apps are based on PageStackWindow...
Mate, for questions like this i will step aside and allow the devs to answer, as they know loads more about it than i do. My S60v5 experience is slim.

Offline schumi1331

  • Viewer
  • *
  • Posts: 7
  • Reputation: 0
  • Symbian Power User
  • Current Phone: : Nokia 808 PureView
Re: Qt Quick Components for S60V5
« Reply #12 on: October 25, 2013, 06:23:54 pm »
Okay, I had some further tries now and this is working in an acceptable way. Some hints:

#1: If you are using PageStackWindow, create a new qml-file called PageStackWindow.qml and copy this into it: https://qt.gitorious.org/qt-components/qt-components/source/9c312a7887f8aea815aa5ccea734df8c942931da:src/symbian/PageStackWindow.qml

Change imports to: "import QtQuick 1.0" and "import com.nokia.symbian 1.0" and out-comment all lines with "platformInverted: ...", as this requires Qt Quick Components 1.1.

#2: Further I had a problem with onButtonClicked: in CommonDialog element and fixed this by creating a new qml-file "BasicDialog.qml" with content from here: https://code.google.com/p/qt-quick-components-s60v5-demo/source/browse/src/3rdparty/qt-components/symbian/CommonDialog.qml with modified imports as above and changed "CommonDialog {" to "BasicDialog {" whereever I used it.

#3: Out-comment every "platformInverted: ..." in the project

#4: Use Qt Assistant to see if the specific element is part of Qt Quick Components 1.0 or 1.1.

#5: "import Qt.labs.components 1.1" needs to be replaced with "import Qt.labs.components 1.0" as well.

Need to fix some small things then I'll try to publish a first app with those packages and smart installer in the Store, let's see what QA will say ;)
« Last Edit: October 25, 2013, 06:25:58 pm by schumi1331 »

Offline yeatse

  • Developer
  • Viewer
  • ****
  • Posts: 8
  • Reputation: 6
  • Symbian Power User
  • Current Phone: : 808
Re: Qt Quick Components for S60V5
« Reply #13 on: October 26, 2013, 05:28:39 am »
Okay, I had some further tries now and this is working in an acceptable way. Some hints:

#1: If you are using PageStackWindow, create a new qml-file called PageStackWindow.qml and copy this into it: https://qt.gitorious.org/qt-components/qt-components/source/9c312a7887f8aea815aa5ccea734df8c942931da:src/symbian/PageStackWindow.qml

Change imports to: "import QtQuick 1.0" and "import com.nokia.symbian 1.0" and out-comment all lines with "platformInverted: ...", as this requires Qt Quick Components 1.1.

#2: Further I had a problem with onButtonClicked: in CommonDialog element and fixed this by creating a new qml-file "BasicDialog.qml" with content from here: https://code.google.com/p/qt-quick-components-s60v5-demo/source/browse/src/3rdparty/qt-components/symbian/CommonDialog.qml with modified imports as above and changed "CommonDialog {" to "BasicDialog {" whereever I used it.

#3: Out-comment every "platformInverted: ..." in the project

#4: Use Qt Assistant to see if the specific element is part of Qt Quick Components 1.0 or 1.1.

#5: "import Qt.labs.components 1.1" needs to be replaced with "import Qt.labs.components 1.0" as well.

Need to fix some small things then I'll try to publish a first app with those packages and smart installer in the Store, let's see what QA will say ;)

#6: "cache" property in Image element needs to be commented out.

#7: When you use Component::createObject(parent, properties) , note that the second parameter(properties) doesn't work in QtQuick 1.0. So use it like this:

var prop = { name: "xxx", value: "xxx" };
var diag = xxxx.createObject(xxxxx);
for (var k in prop){ diag[k] = prop[k] };

#8: implicitWidth and implicitHeight cannot be used in QtQuick 1.0. If you must use these properties, import com.nokia.symbian 1.0 and use ImplicitSizeItem.

#9: Javascript file in WorkerScript doesn't support Qt.include() function in QtQuick 1.0.
« Last Edit: October 26, 2013, 10:10:10 am by yeatse »

Offline symster

  • Developer
  • Happy Member
  • ****
  • Posts: 214
  • Reputation: 6
  • Symbian Power User
  • Current Phone: : Nokia N8 Soon Nokia 808
Re: Qt Quick Components for S60V5
« Reply #14 on: October 26, 2013, 05:59:08 pm »
Even if we could port the belle app to s60v5 there is no way we could publish it to nokia store as nokia will not sign the plugin as they will sign the main app only.Embedded sis need to be sign first.Also the plugin use restricted capabilities which can only be sign at symbiansigned.Most of all even if we "somehow" manage to get through all those hurdle,with only 2 months left can we make it.
« Last Edit: October 26, 2013, 06:00:59 pm by symster »