impeteperry
29th January 2009, 17:32
Hi, I am running Ubuntu 8.10
I have a table written in Qt-4. (see attachment). I want to print the table part. I have a printer connected (Deskjet-5740). I am totally confused on how to start the printer module. (I had printed this type of program when I was using Qt-3.),
void PrintIndex::slotPb5()
{
QStringList temp;
QString path, k;
int corner[17][2];
int side, m, n, count, counter, base;
double a, b, x, y;
bool ret;
QPrinter myprinter; // = new QPrinter();
myprinter.setPageSize( QPrinter::Legal );
myprinter.setOrientation( QPrinter::Landscape );
myprinter.setColorMode( QPrinter::Color );
myprinter.setFullPage ( true );
ret = myprinter.setup();
if( ret == true )
{
QPainter p( &myprinter );
I would appreciate your help very much
Thank you
I have a table written in Qt-4. (see attachment). I want to print the table part. I have a printer connected (Deskjet-5740). I am totally confused on how to start the printer module. (I had printed this type of program when I was using Qt-3.),
void PrintIndex::slotPb5()
{
QStringList temp;
QString path, k;
int corner[17][2];
int side, m, n, count, counter, base;
double a, b, x, y;
bool ret;
QPrinter myprinter; // = new QPrinter();
myprinter.setPageSize( QPrinter::Legal );
myprinter.setOrientation( QPrinter::Landscape );
myprinter.setColorMode( QPrinter::Color );
myprinter.setFullPage ( true );
ret = myprinter.setup();
if( ret == true )
{
QPainter p( &myprinter );
I would appreciate your help very much
Thank you