Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    GTK or Qt for future applications?

    Reply
    Page 1 of 2 | 1   2   | Next
    Andrei | # 1 | 2009-10-21, 10:47 | Report

    Hi guys!

    I'm not sure this thread belongs in this category but I'll ask anyway.

    I want to start developing some apps for the n900 and I'm not sure if I should use GTK or Qt for it.

    I'd love to hear your input regarding this choice (pros and cons). You need to keep in mind that I intend to make the apps as compatible as possible with the previous and future releases of Maemo. However, I'm more interested in being able to port it to Harmattan.

    Thanks guys!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    attila77 | # 2 | 2009-10-21, 11:00 | Report

    You answered the question - if you care about Harmattan (and are not a GTK guru already) the choice is quite clearly Qt, especially since it will be officially supported on Fremantle from Q1 next year.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qgil | # 3 | 2009-10-21, 11:02 | Report

    If you are looking for future compatibility then Qt is the official path. If you need something right now look at the 4.5 community port. If you still have a bit of time to play with then the official Qt 4.6 port is the best path

    http://qt.nokia.com/developer/qt-for-maemo-developers

    http://www.nokia.com/press/press-rel...newsid=1346627

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to qgil For This Useful Post:
    allnameswereout, Andrei, Patola

     
    deadmalc | # 4 | 2009-10-21, 11:02 | Report

    Also remember that it is likely to be easier to port to symbian (in Qt) as well, you may not be interested in symbian directly but it could give your app more attention.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pycage | # 5 | 2009-10-21, 11:02 | Report

    GTK:
    + life is easier on Fremantle with GTK as this is the native toolkit with full support for everything
    + can write code in any language
    + cross-platform (Linux, Unix, Windows, Mac)
    - community maintained documentation not always easy to read or complete
    - GTK will be officially dropped for Harmattan and will only be community-supported (like Qt is now)
    - some say Qt is faster than GTK
    - object-oriented GObject C is something you have to get used to, but with higher languages, this isn't required

    Qt:
    + will be the native toolkit on Harmattan
    + Qt apps written today are supposed to work mostly on Harmattan
    + code-compatible with Symbian in the near future
    + good documentation
    + cross-platform (Linux, Unix, Windows, Symbian)
    - cannot write code in C, you need at least C++
    - C++ code is not real C++, but has to be preprocessed by a special preprocessor for compiling

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 8 Users Say Thank You to pycage For This Useful Post:
    allnameswereout, Andrei, bergie, hqh, kdrozd, nymajoak, pelago, vkv.raju

     
    msoini | # 6 | 2009-10-21, 11:06 | Report

    If you have time to wait until Q1 2010, then Qt might appeal to you then, if you want to code for future (Maemo 6) too. See http://talk.maemo.org/showthread.php?p=330308 thread for more info.

    If you want to do things right now, and specifically in a way that Maemo 5 does things in the UI, then using Hildon (and Gtk) might be more appealing to you right now.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to msoini For This Useful Post:
    Andrei

     
    Andrei | # 7 | 2009-10-21, 11:19 | Report

    Wow! Thanks for the quick replies.

    I suppose I can wait a little more and just go with Qt (that's if I only have to wait until Q1 of 2010). I could use the time to study Qt a little more and get some pointers on C++, since I'm not familiar with it.

    http://talk.maemo.org/showthread.php?t=31888 answered some additional questions I had, so thanks for pointing me in the right direction.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sjgadsby | # 8 | 2009-10-21, 12:44 | Report

    Originally Posted by Andrei View Post
    I'm not sure this thread belongs in this category but I'll ask anyway.
    Thread moved to the Development forum, but don't let selecting another forum initially concern you. Thanks for joining the community and jumping in like this!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rm42 | # 9 | 2009-10-21, 13:05 | Report

    Originally Posted by pycage View Post
    Qt:
    - cannot write code in C, you need at least C++
    You can write Qt apps in Python as well, with PyQt or the newer PySide.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to rm42 For This Useful Post:
    bergie, eiffel

     
    corsac | # 10 | 2009-10-22, 08:09 | Report

    Originally Posted by pycage View Post
    GTK:
    - community maintained documentation not always easy to read or complete

    Qt:
    + good documentation
    Hmhm, what exactly makes you say that?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout