PDA

View Full Version : problem - printing in windows and linux



newplayer
8th July 2008, 16:01
Why can't I use function print() in linux ? In windows I can and in linux I can't:
my function:


void MyWindow::Print()
{
QPrintDialog x (&printer,this);
if (x.exec() == QDialog::Accepted)
{
textbox -> print (&printer);
}
}


mistake:


error: ‘class QTextEdit’ has no member named ‘print’

caduel
8th July 2008, 16:39
possibly you use too old a Qt version under Linux (esp. a different one)?
This function was added in 4.3.

newplayer
8th July 2008, 20:22
thx You very much :D