diff --git a/.gitignore b/.gitignore index 54d1f91..60c5c45 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ qrc_*.cpp *.cpp.swp *.js.swp src/services/html/htmlservice +*.pro.user diff --git a/.qmake.conf b/.qmake.conf new file mode 100644 index 0000000..8840bd9 --- /dev/null +++ b/.qmake.conf @@ -0,0 +1,3 @@ +load(qt_build_config) + +MODULE_VERSION = 0.0.0 diff --git a/How to run&debug with plugin.odt b/How to run&debug with plugin.odt new file mode 100644 index 0000000..1d2d454 Binary files /dev/null and b/How to run&debug with plugin.odt differ diff --git a/How to run&debug with plugin.pdf b/How to run&debug with plugin.pdf new file mode 100644 index 0000000..bd435ee Binary files /dev/null and b/How to run&debug with plugin.pdf differ diff --git a/README.md b/README.md index 38e89b3..b2b4c98 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,23 @@ This is the Qt HTML backend utilizing the Qt Platform Abstraction (QPA). -Compile against Qt5 (Depend on the Qt Service Framework in qtsystems). +Compile against Qt5 [Video Demo](http://www.youtube.com/watch?v=qDyWjNju1yU) See also: [Gtk+ HTML backend (broadway)](https://www.google.com/search?q=gtk%20html%20backend) + +Dependancy on Ubuntu 14.04: + - apt-get install qt5-default qtbase5-private-dev libxrender-dev libfontconfig1-dev libfreetype6-dev libudev-dev libglib2.0-dev + +How to build: + - qmake qthtml.pro + - make + +Compiled library will be at ./plugins/platforms/libqthtml.so + +How to run Qt5 based application with plugin: + - copy plugin to [QT_DIR]/plugins/platforms/ + for example for Ubuntu 14.04 QT_DIR is + /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms + - or (if you don't have root rights or don't want to change original qt installation) perform command “export QT_QPA_PLATFORM_PLUGIN_PATH="path_where_plugin_is_located" ” in console where qt5 application will run from + - qt5_app -platform html + - application will be accessible at 127.0.0.1:8080 in any HTML5 capable web browser diff --git a/src/plugins/html/.gitignore b/src/plugins/html/.gitignore new file mode 100644 index 0000000..a203b9b --- /dev/null +++ b/src/plugins/html/.gitignore @@ -0,0 +1,6 @@ +*.pro.user +/.moc/ +/.obj/ +/.pch/ +/.rcc/ +/Makefile.html_embed diff --git a/src/services/html/client.html b/src/plugins/html/client.html similarity index 59% rename from src/services/html/client.html rename to src/plugins/html/client.html index bed2cc4..114d7f0 100644 --- a/src/services/html/client.html +++ b/src/plugins/html/client.html @@ -1,11 +1,11 @@
- - - - - + + + + +