Serial port print for html
-
wrote on 11 Jul 2013, 13:36 last edited by
Is this possible to print a dynamic html file through serial port printer line by line...?
-
wrote on 20 Jul 2013, 08:21 last edited by
Since a HTML file (and dynamic content generated by PHP etc) is text content, sure.
-
wrote on 20 Jul 2013, 08:33 last edited by
thanks for your reply jan.. im generate a html at run time using sethtml( ) and show it in a dialog through text browser, then how can i print this into serial port printer which was connected to my linux system..
-
wrote on 20 Jul 2013, 08:57 last edited by
There's a new class in Qt5 that makes it fairly easy to deal with serial ports: "QtSerialPort":https://qt-project.org/doc/qt-5.1/qtserialport/qtserialport-index.html
That should get you going.
-
wrote on 22 Jul 2013, 05:34 last edited by
Im using Qt5.0, it does not have any class QtSerialPort. so im download source code from some other website and compile. it shows read and write function errors.. im follow instructions using this website(http://qt-project.org/wiki/QtSerialPort)..
-
wrote on 22 Jul 2013, 05:39 last edited by
Ah, yes. I hope you got it from http://qt.gitorious.org/qt/qtserialport .
-
wrote on 22 Jul 2013, 06:33 last edited by
yep.. i almost reached but i need little more help.. after debug it show a popup that needs command and working directory options wat will i give these.. i include that popup as image see it... !http://i44.tinypic.com/2wr0k0g.png(screenshots)!
-
wrote on 22 Jul 2013, 07:08 last edited by
Seems like you tried to run it? You should use QtSerialPort as a library.
If I recall correctly, after building it in Creator, go to the build directory in your terminal and type "make install"
-
wrote on 22 Jul 2013, 07:37 last edited by
i went to terminal window of specified build folder and i type make install or sudo make install, but shows make: nothing to be done for 'install', i also tried qmake... nothing happen, wats wrong with my code..!http://i41.tinypic.com/zmeb93.png(screenshot1)!
-
wrote on 22 Jul 2013, 08:21 last edited by
Well, perhaps it's already good to go.
Did you try using the library as described under "Usage" in the Wiki?
-
wrote on 24 Jul 2013, 04:52 last edited by
yeah.. its working now.. thanks jan