Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Server pages with qt
Is it posible to do somethig like asp/jsp/php with qt?
Need possibility to add in html file some c++ code(or script) that can access to application data, and get resulting html text.
In principle, it is. But Qt is not build for that purpose.
Perhaps you should look into "wt":http://www.webtoolkit.eu/wt. It is inspired on Qt, but build for doing server pages.
Need some more simply
Do you mean "simple" instead of "simply"?
Perhaps you should make your requirements a bit more clear then. What do you want to achieve exactly? Why would you think that Qt would be simpler to use for web service applications than wt?
What you could do perhaps, is use PHP with your favourite web server, and let PHP communicate with your Qt program via a socket to get the "application data" you're talking about, in much the same way that you can communicate with databases from PHP. I have done that myself in the past, and it works fine. It is hard to judge based on the extremely sparse information you give if this would work in your case though.
dialingo last edited by
There are only a few frameworks for C++ web development. But maybe all you need is a template processor.
Here is a discussion which could be of interest to you:
But need more handy. And simply access to c++ class fields from html.
Did you look at "Grantlee":http://www.gitorious.org/grantlee/pages/Home? Is that what you need?
ZapB last edited by
Take a look at "this":http://kodeclutz.blogspot.com/2011/02/qhttpserver-web-apps-in-qt.html which may be of interest to you if you want to build an actual http server.
If you are just doing it locally then a templating library is you rbest bet like Andre mentioned.