Web application mobile



  • Hello everybody,

    I'm french and new in this forum. So, sorry if my english is not very good.

    I want to know if it is possible to create a web application mobile in Qt Quick and QML like a website in which we have a system of users authentication, page routing, a backoffice ...

    Thanks



  • I am not 100% sure what you mean.

    Do you want to develop a mobile app that's based on a WebView or do you want to create a website with QML? The latter seems to be possible with QML (but currently not out-of-the box) and the following project https://github.com/qmlweb/qmlweb. However, I am not sure how much of Qt's functionality is covered by qmlweb nor do I know how it performs.



  • Hello,

    Thanks for your reply.
    It's not really a website. I want to create an application mobile like Ionic application with a hamburger menu ...
    More precisely, a user registers and logs on the application. Then he could sell a product that can be purchased by others users. The application will work on Android and IOS.

    Thanks



  • @mohaskh You can create android/iOs mobile applications with Qt. In order to get a feeling of what controls are available in Qt, you could install Qt and play a little bit with the following example [1].

    [1] http://doc.qt.io/qt-5/qtquickcontrols2-gallery-example.html



  • Hi @mohaskh ,

    To sum up, yes, what you want to do is possible with Qt. You can create the front-end with Qt, but you would need different technologies for the server-side part.

    If I understand you correctly, you want to create a mobile application with a backend. The backend would store your user data, authenticate your users, manage your content, etc. You would have to create that backend in a server-side programming language such as PHP. Your backend would somehow expose its data to your app, e.g. via a JSON API.

    Then, your mobile app, which you create with Qt, could communicate with that backend via XMLHttpRequest.

    If you want to have native look & feel for Android and iOS in your app, you could check out V-Play.

    Cheers,
    Lorenz



  • Hello @Schluchti @Lorenz

    Thanks for your reply.
    Just a last question, is it better to create this application in Qt Quick QML or Ionic.
    Knowing that the documentation in Ionic is more important than QML but after doing some research on the net, i understand that the security on Ionic is not really good. And also, i have never yet use QML.

    What are the advantages and disadvantages between them ?
    What do you suggest I do ?

    Thanks



  • I have never worked with Ionic, but I can imagine that there is no "right" framework for your task. If you ask the question in the Ionic forum, probably everybody will tell you to go with Ionic. If you ask the guys here, they will most probably tell you that Qt outruns Ionic ;-)

    I think in the end it's mostly about personal preference and the time you want to invest to learn a new framework. If you go the Qt way, you should be aware that you can do a lot of stuff with QML, but as your application gets more complex you usually end up at a point where you need to implement stuff in C++ as well. So if you don't know C++ at all, starting with Qt might be a bit too much. In case you are interested, here is my personal experience with Qt: https://gympulsr.com/blog/qt/2017/02/23/working-with-qt-mobile.html



  • Hi,

    I agree with Schluchti, there is no "right" framework. You should select the one that best fits your needs and skills.

    If you want to see a comparison of different frameworks, check out http://propertycross.com/! There, you can see one and the same application implemented with different frameworks and compare them. There is a Qt and a Qt + V-Play implementation as well as an Ionic implementation listed on the website. Maybe that's helpful for you.

    Check out this comparison in lines of code from the property cross project:

    alt text

    Disclaimer: I work for V-Play, so of course for me Qt + V-Play is the best solution ;)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.