• May 19, 2024, 10:09:35 pm

Author Topic: Qt Qml vs Qt C++  (Read 6921 times)

0 Members and 1 Guest are viewing this topic.

dracodragon

  • Guest
Qt Qml vs Qt C++
« on: January 25, 2012, 12:25:57 am »

Here's a brief info for beginners on qt c++and qml. Which one to choose, their plus and negative points:

Qml is a must try for beginners, if you get a hang of the code syntax, it's damn easy.
The structure is 90% like netbeans java (or any other java sdk). Plus there is Qt sdk's auto complete and suggestion feature and click-F1-on-code part-to-know-about-that-code-part features that makes life a lot easy.
And c++ structure is the famous original C structure and style that most of us know. Sdk also had the auto complete and suggestion with help feature.

In qml, there's no making things yourself, you have to do things according to preset properties. (I'll post in details about qml qt quick in another thread)

In qt c++, you've to make everything yourself, if you want to create high level stuff, though the sdk provides some qml-quick type components even in c++

Next most important point is Speed! It really matters for day to day usage, in qml, you can make apps look pretty easily, but things will get slow with heavy ui.
In c++, you've to spend a lot of time to make it look good, but ui will be always fast even in heavy tasks like accessing contacts, where qml freezes for almost 5 seconds !!!! (Mind it!)

Then comes the APIs and options available to the coder. In this case too, Qt c++ wins, there's lot more you can do with the c++ code than in qml, like running apps in background, making an app's Homescreen widgets, etc.

Ofcrse, the best option is to combine both. Qml ui and c++ engine to access data. But that requires some advanced techniques to link the c++ data to the qml ui.
I'm currently trying to learn this techniques extensively. I'll write a thread on those advanced methods when I get a hang myself


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 Qml vs Qt C++
« Reply #1 on: January 25, 2012, 01:18:41 am »
great ! +1

Offline vds5344

  • The mortal
  • Retired moderator
  • Forum Ghost
  • ***
  • Posts: 2,281
  • Reputation: 196
  • Pissed by kids.
    • Symbian Developers
  • Current Phone: : Nokia c6 01
Re: Qt Qml vs Qt C++
« Reply #2 on: January 25, 2012, 09:59:52 pm »
yeah but the worst part is necessity of pc for coding which i don't have :(

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 Qml vs Qt C++
« Reply #3 on: January 25, 2012, 10:05:57 pm »
yeah but the worst part is necessity of pc for coding which i don't have :(
that's the problem and the program is heavy .

Offline vds5344

  • The mortal
  • Retired moderator
  • Forum Ghost
  • ***
  • Posts: 2,281
  • Reputation: 196
  • Pissed by kids.
    • Symbian Developers
  • Current Phone: : Nokia c6 01
Re: Qt Qml vs Qt C++
« Reply #4 on: January 25, 2012, 10:16:56 pm »
yeah it's resource eater :( but we can't help

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 Qml vs Qt C++
« Reply #5 on: January 25, 2012, 10:24:05 pm »
yeah it's resource eater :( but we can't help
true

dracodragon

  • Guest
Re: Qt Qml vs Qt C++
« Reply #6 on: January 25, 2012, 11:31:46 pm »
yeah it's resource eater :( but we can't help

and I don't have enough bandwidth and speed to download the update to the qt sdk.. :( developers are dying out in here, and Nokia gives free dev devices to those developers who are already rich enough to buy themselves
« Last Edit: March 15, 2012, 09:03:35 pm by dracodragon »

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 Qml vs Qt C++
« Reply #7 on: January 25, 2012, 11:40:50 pm »
and I don't have enough bandwidth and speed to download the update to the qt sdk.. :( developers are dying out in here, and Nokia gives free N900, N950 & Free Lumia 800 to the same people over and over again, to those developers who are already rich enough to buy themselves
very true ..

Offline UpakulRox

  • Retired
  • Respected Member
  • ***
  • Posts: 609
  • Reputation: 184
  • A Symbian Fanboy
    • Symbian-Developers
  • Current Phone: : Nokia N8
Re: Qt Qml vs Qt C++
« Reply #8 on: January 26, 2012, 12:11:05 am »
Wow man thanks a lot!!!!!

Offline vds5344

  • The mortal
  • Retired moderator
  • Forum Ghost
  • ***
  • Posts: 2,281
  • Reputation: 196
  • Pissed by kids.
    • Symbian Developers
  • Current Phone: : Nokia c6 01
Re: Qt Qml vs Qt C++
« Reply #9 on: January 26, 2012, 12:11:46 am »
yeah how to get phones i tried to contact knobtviker he got n950

Offline MoritzJT

  • Developer
  • New Member
  • ****
  • Posts: 16
  • Reputation: 1
  • Symbian Power User
  • Current Phone: : N95-1, N8-00, N900, N9, 808
Re: Qt Qml vs Qt C++
« Reply #10 on: January 26, 2012, 04:52:15 am »
yeah but the worst part is necessity of pc for coding which i don't have :(

Well you can do QML editing right on the phone, but of course nothing extensive...

Offline vds5344

  • The mortal
  • Retired moderator
  • Forum Ghost
  • ***
  • Posts: 2,281
  • Reputation: 196
  • Pissed by kids.
    • Symbian Developers
  • Current Phone: : Nokia c6 01
Re: Qt Qml vs Qt C++
« Reply #11 on: January 26, 2012, 10:18:34 am »
actually typing is a mess on a 3.2 inch screen. I'm a newbie too but want To Learn

Offline MoritzJT

  • Developer
  • New Member
  • ****
  • Posts: 16
  • Reputation: 1
  • Symbian Power User
  • Current Phone: : N95-1, N8-00, N900, N9, 808
Re: Qt Qml vs Qt C++
« Reply #12 on: January 26, 2012, 11:54:51 am »
actually typing is a mess on a 3.2 inch screen. I'm a newbie too but want To Learn

On the N900 it's manageable, for the N9 and the N8, a proper Bluetooth keyboard does the trick for me, or excessive teaching of programming words in swype ;-) But yeah, I prefer a proper machine for coding too. I just meant one should not stop trying :-)

Offline vds5344

  • The mortal
  • Retired moderator
  • Forum Ghost
  • ***
  • Posts: 2,281
  • Reputation: 196
  • Pissed by kids.
    • Symbian Developers
  • Current Phone: : Nokia c6 01
Re: Qt Qml vs Qt C++
« Reply #13 on: January 26, 2012, 12:42:31 pm »
yeah first I'm burdened a bit with studies then yeah i can't buy bt keyboard. Just trying to configure out similarities in xml and java

dracodragon

  • Guest
Re: Qt Qml vs Qt C++
« Reply #14 on: January 26, 2012, 01:48:13 pm »
yeah first I'm burdened a bit with studies then yeah i can't buy bt keyboard. Just trying to configure out similarities in xml and java

You should learn all the theories and syntax for now, when you get a pc or other opportunity, then you can easily start developing practically

And here's how the same people get the devices, u need to attend a workshop once, or just get recognised somehow...(Not possible in our area...)
http://www.symbiantweet.com/how-to-get-one-of-the-25000-nokia-lumia-windows-phone-developer-devices