kkk777kkk
6th July 2011, 09:20
I need to print some document which constist of table (in html) and pdf.
I have realization which worked in qt3 but some problems in qt4:
Table draws by QPainter and QTextDocument.
And then i receive HDC from QPainter "painter->paintEngine()->getDC()" and draw other stuff by WinAPI functions: some needed lines by MoveToEx and LineTo; converting pdf to eps and sending it data using ExtEscape function.
If i QPainter.begin() before drawing table and end() it after drawing table that tables draws OK and sent to Printer but WinAPI drawing falls.
And if i end() it after drawing WinAPI lines and pdf i can't see table which QPainter should draw. First time i think that postscript routine block other drawing at all but MoveToEx and LineTo drawn before "Initial" and "End" blocks of postsript sent to printer and i see resulting lines of this functions.
Help me please solve this trouble :confused:
I have realization which worked in qt3 but some problems in qt4:
Table draws by QPainter and QTextDocument.
And then i receive HDC from QPainter "painter->paintEngine()->getDC()" and draw other stuff by WinAPI functions: some needed lines by MoveToEx and LineTo; converting pdf to eps and sending it data using ExtEscape function.
If i QPainter.begin() before drawing table and end() it after drawing table that tables draws OK and sent to Printer but WinAPI drawing falls.
And if i end() it after drawing WinAPI lines and pdf i can't see table which QPainter should draw. First time i think that postscript routine block other drawing at all but MoveToEx and LineTo drawn before "Initial" and "End" blocks of postsript sent to printer and i see resulting lines of this functions.
Help me please solve this trouble :confused: