Lazarus
Programming => Widgetset => QT => Topic started by: clauslack on January 27, 2012, 10:29:49 pm
-
Raw mode printing not work in QT.
Show error
"Canvas not allowed in Raw Mode"
Easy test with example rawmodetest.lpi (printers folder)
With GTK2 work Ok.
Test with Lazarus 0.9.30.1 fpc 2.4.4 qt 4.6.2 32 bits
Test with Lazarus 0.9.30.1 fpc 2.4.2 qt 4.7 64 bits
Matrix printer epson lx 810.
QT seems to send the print as PostScript.
Check qtconfig app but nothing..
Any workarround ?
Thanks
-
Well :'( still not supported
From http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/printers/qt/qtprinters.inc?view=markup&root=lazarus
procedure TQtPrinters.RawModeChanging;
begin
inherited RawModeChanging;
{$IFDEF VERBOSE_QT_PRINTING}
DebugLn('TQtPrinters.RawModeChanging(): Raw mode is not yet supported');
{$ENDIF}
end;
-
Fell free to create patch for raw printing support if you need it badly.
-
I do a workarround in Lazarus "printing" to text file, and then use lpr textfile -Pepson. (epson selected with TPrintDialog)
Qt not support raw printing.
See this bugreport (closed without solution)
"QPrintEngine add API support to send raw commands to printer"
https://bugreports.qt-project.org/browse/QTBUG-2705?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
Regards