×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    4

    [RESOLVED] Best way to port from desktop targets

    Hi,

    I've read the port wiki but my app is already coded as Qt ui forms. What I'd like to have is the same graphical representations between Desktop (windows, linux) and mobile ones : Symbian (Meego if possible). What happen now, is that I have to rewrite the GUI part of my app as the layout doesn't seems to be adapted when I compile from Desktop->Symbian : edits, QPushbuttons are too smalls.

    This lead me to create a separate project because the settings between targets are now differents.

    • What is the best If I want to be platform independant ?
    • do I have to rewrite the GUI in QML ?

    If yes, my former choice for Qt was its nice C++ form, using java script would be a step back for me. In addition, then using Qt is less usefull knowing that if I have to use Javascript I could use other framework that have more mobiles range .
    Last edited by lewind; 2012-02-24 at 07:56.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Best way to port from desktop targets

    Hi,

    It would be good if the GUI is in QML.

    You can find instructions here

  3. #3
    Regular Contributor
    Join Date
    May 2010
    Posts
    362

    Re: Best way to port from desktop targets

    Also note that you can still use your C++ code for logic too. Using only javascript is not necessary.

  4. #4
    Registered User
    Join Date
    Feb 2012
    Posts
    4

    Re: Best way to port from desktop targets

    thanks kusumk, I already knew that good Qt page.

    My main concern is: does it worth the time to rewrite my app as QML graphics ?

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Best way to port from desktop targets

    I feel yes, since effort to implement UI in QML and integrating with C++ code would save time, as you need not worry of the application look and feel, for the phone, Depending on the platform for which the app is compiled, it provides very neat UI, takes care of orientations etc.
    Otherwise you will have to struggle fixing these UI design issues for each platform and their versions.

  6. #6
    Registered User
    Join Date
    Feb 2012
    Posts
    4

    Re: Best way to port from desktop targets

    Quote Originally Posted by kusumk View Post
    I feel yes, since effort to implement UI in QML and integrating with C++ code would save time, as you need not worry of the application look and feel, for the phone, Depending on the platform for which the app is compiled, it provides very neat UI, takes care of orientations etc.
    Otherwise you will have to struggle fixing these UI design issues for each platform and their versions.
    totally right : that's currently what I have to face.

    Teemup: do you have examples of implementing QML with logic in C++ please ?

  7. #7
    Registered User
    Join Date
    Mar 2011
    Posts
    27

    Re: Best way to port from desktop targets

    http://qt.nokia.com/learning/online/...-quick-edition

    The last slide from this link is about QML with C++

  8. #8
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    Re: Best way to port from desktop targets

    Quote Originally Posted by lewind View Post
    My main concern is: does it worth the time to rewrite my app as QML graphics ?
    actually, you have no choice. till Qt5 there is only one way to create more or less up-to-date UI - QML plus qt components
    when Qt5 will arrive, there will not be support for Symbian/Meego, so....stuck with Qt4.x/QtQuick 1.x etc...
    Symbian & Qt developer. http://vladest.org

  9. #9
    Registered User
    Join Date
    Feb 2012
    Posts
    4

    Re: Best way to port from desktop targets

    Indeed that what I needed to know.

    Thank you all for these precious information.

Similar Threads

  1. Sending SMS from Java Desktop Client using Nokia E70 connected to USB port
    By pasachi in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 0
    Last Post: 2007-10-31, 10:06
  2. Replies: 3
    Last Post: 2007-05-23, 10:14
  3. techniques for multiple targets
    By davidmaxwaterman in forum Symbian
    Replies: 0
    Last Post: 2007-02-07, 12:28
  4. exe and app targets
    By rtsvet in forum Symbian
    Replies: 0
    Last Post: 2003-04-24, 14:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×