Results 1 to 4 of 4

Thread: Qt backend (C++) Webpage Frontend (HTLM, php)

  1. #1
    Join Date
    Sep 2015
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Qt backend (C++) Webpage Frontend (HTLM, php)

    I have a QT application written in C++ and running on a raspberry pi. All working fine.
    The application controls the hardware on the 'pi' (GPIO and USB).

    To access the Qt application on the raspberry pi, I ssh (X11 tunnel enabled) and run the application remotely. This allows me to control the 'pi' hardware from a remote location.

    I wish to change this configuration and create a webpage as the Frontend and C++ Qt as the backend.
    This way any computer with a web browser can access the 'pi'.

    Is this possible using QT?
    How would the two be linked?
    Would the webpage have Qt widgets?

    Any 'pointers' appreciated.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt backend (C++) Webpage Frontend (HTLM, php)

    The simplest approach IMHO would be to have your C++ code listen for http requests and provide a RESTful interface. Use XML or JSON for request/response data. The RESTful interface can be as complex or simple as you require.
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  3. The following user says thank you to jefftee for this useful post:

    pirata (1st October 2015)

  4. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt backend (C++) Webpage Frontend (HTLM, php)

    This could be helpful: http://stefanfrings.de/qtwebapp/tutorial/index.html

    Cheers,
    _

  5. #4
    Join Date
    Sep 2015
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Qt backend (C++) Webpage Frontend (HTLM, php)

    Quote Originally Posted by jefftee View Post
    The simplest approach IMHO would be to have your C++ code listen for http requests and provide a RESTful interface. Use XML or JSON for request/response data. The RESTful interface can be as complex or simple as you require.
    Agree, used this as foundation to trap http requests.
    http://www.bogotobogo.com/Qt/Qt5_QTc...ent_Server.php

Similar Threads

  1. Replies: 0
    Last Post: 10th March 2015, 20:24
  2. Replies: 8
    Last Post: 14th June 2013, 11:16
  3. Change phonon backend to vlc backend
    By stereoMatching in forum Newbie
    Replies: 1
    Last Post: 8th September 2012, 06:10
  4. C++/Qt Frontend Developer - Munich
    By Maike.F in forum Jobs
    Replies: 1
    Last Post: 12th July 2012, 16:02
  5. DoxyGate - Doxygen GUI Frontend
    By doxygate in forum Qt-based Software
    Replies: 11
    Last Post: 12th January 2009, 17:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.