Serial port print for html
-
Since a HTML file (and dynamic content generated by PHP etc) is text content, sure.
-
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..
-
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.
-
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)..
-
Ah, yes. I hope you got it from http://qt.gitorious.org/qt/qtserialport .
-
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)!
-
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"
-
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)!
-
Well, perhaps it's already good to go.
Did you try using the library as described under "Usage" in the Wiki?
-
yeah.. its working now.. thanks jan