Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Web Application development...



  • Hello!

    I'm a bit confused about Webkit, does it serves to me to create web application?.. for instance, i need to create an e-learning application where multiple users connect using their browser to a server i own via dyndns service, the idea is that they can log in and read pdf documents, then do tests answering a question with the typical a,b,c,d,e exclusive answer selection mode..

    This is pretty much the same as can be done in Asp.net or Razon (C# +html), but i LOVE C++, and don´t want to switch to another language, so Qt is a great option....

    I have read that there is another framework called "Wt", but have even no idea how it works, neither if it integrates to Qt or do they are two diferent things... etc.

    Where do i start?

    Any help will be grantly appreciated...
    Mike


  • Moderators

    @U7Development said in Web Application development...:

    I'm a bit confused about Webkit, does it serves to me to create web application?.

    No. WebKit (or rather - WebEngine) is the web browser implementation in Qt. You can use it to display (and interact with) web pages in Qt GUI applications. But the web content needs to be provided by a web server of some sort. It can be written in any technology. If you want to write it in C++ and Qt - check out Cutelyst, it's awesome.

    You can also serve Qt applications via web in 2 more ways:

    Both quite experimental.



  • @sierdzio said in Web Application development...:

    @U7Development said in Web Application development...:

    I'm a bit confused about Webkit, does it serves to me to create web application?.

    No. WebKit (or rather - WebEngine) is the web browser implementation in Qt. You can use it to display (and interact with) web pages in Qt GUI applications. But the web content needs to be provided by a web server of some sort. It can be written in any technology. If you want to write it in C++ and Qt - check out Cutelyst, it's awesome.

    You can also serve Qt applications via web in 2 more ways:

    Both quite experimental.

    Thanks, that last is interesting, does that means that with Qt Web streaming i can créate my program as desktop reléase and share it through web using WebGL ? I remember using WebGL in the past with Unity, seems to load the whole program (or game) into web and be renderer on browser... that could be fantastic with Qt!...

    If i missundertood it, please tell me, and i Will switch to Cutelyst
    Thanks!


  • Moderators

    @U7Development said in Web Application development...:

    Thanks, that last is interesting, does that means that with Qt Web streaming i can créate my program as desktop reléase and share it through web using WebGL ?

    Yes, more or less.

    The difference between streaming and webassembly approach is that in Qt WebGL streaming the server will run your application and only stream the UI to your browser (so it will do something like "screen share" but it's fully interactive and clickable etc.). This means that if 1000 people connect at the same time, the app will be started 1000 times == server will have a lot to do.

    With webassembly approach, you compile the Qt application into web assembly which your server then distributes as a "normal" web page - it will send the assembly code to your web browser, and your browser will run it. Result is: the server is less busy (can handle more connections at the same time) but it will take longer to load for users (because web browser needs to download the code and run it).

    With Cutelyst - well it's just a web framework, similar to Django, Ruby on Rails etc. but written with Qt and C++. So the server sends HTML, CSS data to web browser and the browser handles it just like any other web page. Big advantage is that your whole backend is C++ - fast, small and hard to hack.

    There are more differences than that, of course, I'm just pointing out the biggest ones.



  • @sierdzio said in Web Application development...:

    With Cutel

    That's good, so i guess the better option is Cutelyst. Just a last question: can i develope my app using Qt Creator but with Cutelyst framework ?..

    Thanks again..


  • Moderators

    @U7Development said in Web Application development...:

    can i develope my app using Qt Creator but with Cutelyst framework ?

    Yes. Stock Qt Creator understands the default cmake project that Cutelyst creates quite well. I think Cutelyst also provides their own, customized version, but I have never used it.


Log in to reply