Qt Weekly #10: Creating Server-side, Cross-Platform and N-Screen Todo Application with Qt Cloud Services

Published Tuesday May 13th, 2014
2 Comments on Qt Weekly #10: Creating Server-side, Cross-Platform and N-Screen Todo Application with Qt Cloud Services
Posted in Qt, Qt Cloud Services, Tutorial | Tags: , , ,

Today, many applications can be used with native desktop operating systems accompanied with mobile optimized applications and web browser based clients. Qt Cloud Services makes it possible for you to develop such applications with ease. Start developing modern, cross-platform and connected applications that will work on any device with this tutorial!

The backbone of any connected application is the server-side application and logic which is used by client software implementations. This tutorial will demonstrate development of server-side application running on Qt Cloud Services that can be connected from Qt and HTML5 clients.

Technologies used:

  • Qt Cloud Services, Enginio Data Storage – for cloud based data storage
  • Node.js, Express 4.0 – for server-side
  • HTML5, jQuery, Bootstrap, Backbone – for HTML5 web client
  • Qt – for desktop & mobile clients

You can see the final application running at our Managed Application Runtime service http://qtc-tutorial-todo.qtcloudapp.com. Managed Application Runtime is a cloud-based runtime environment for developing, running and scaling server-side applications. It supports supports some of the most popular runtime environments including Qt/C++ and Node.js. It is currently available as Early Access technology for selected developers.

You can also install the native Qt client application from Google Play store to your Android device. With little effort, you could package it to iOS and WinRT. Here’s some screenshots of the application:


HTML5 Web Browser Client


Android Client

Qt Cloud Services is available to all Qt users, regardless of the license or version. If you haven’t started with Qt Cloud Services already, please sign-up for free at Qt Cloud Services website.

See the complete tutorial for this project. Happy programming!

Do you like this? Share it
Share on LinkedInGoogle+Share on FacebookTweet about this on Twitter

Posted in Qt, Qt Cloud Services, Tutorial | Tags: , , ,


Scorp1us says:

I like Node, but it should be considered an embarrassment that you have to use Node.

We should be able to make REST services using Qt and QObjects.

Imagine defining a QObject-derived class with slots, which provide properties and automatic serialization there of, to JSON. Then we take these objects and link them together as child objects to construct a path.
Root object name: “api” provides
register,login,me,logout,todos functions of signature JsonResponse (function) (const QString& httpOp, const QMap& httpParams, const QJsonDocument doc);
(Where JsonResponse is a class with a QJsonDocument and a Map of http header values for the http response.

Hi! It’s good idea. While it is possible to do server-side features with Qt, many of Qt Cloud Services users are using something else for that purpose. This is just an example how you can use Node.js. It would be nice to see somebody doing server side Qt port of this tutorial. Would you like to contribute? 🙂

Commenting closed.

Get started today with Qt Download now