Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Server pages with qt
Forum Updated to NodeBB v4.3 + New Features

Server pages with qt

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nicolay
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nicolay
        wrote on last edited by
        #3

        Need some more simply

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dialingo
            wrote on last edited by
            #5

            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:
            http://stackoverflow.com/questions/537820/whats-a-good-html-template-engine-for-c

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Nicolay
              wrote on last edited by
              #6

              Like http://nulidex.com/code/docs/html_template/#TMPL_UNLESS

              But need more handy. And simply access to c++ class fields from html.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                Did you look at "Grantlee":http://www.gitorious.org/grantlee/pages/Home? Is that what you need?

                1 Reply Last reply
                0
                • Z Offline
                  Z Offline
                  ZapB
                  wrote on last edited by
                  #8

                  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.

                  Nokia Certified Qt Specialist
                  Interested in hearing about Qt related work

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved