Actually i found out that the QRectF is for clipping purposes not bounding purposes when using the drawContents method in the QTextDocument. Ill look into the adjust method though.....maybe that will help
Thanks!
Actually i found out that the QRectF is for clipping purposes not bounding purposes when using the drawContents method in the QTextDocument. Ill look into the adjust method though.....maybe that will help
Thanks!
Instead of moving the QTextDocument output, just move your painter! And afterwards back, of course...
millsks (6th March 2009)
haha thanks that exactly what i did and it was all squished and then i remember i didnt adjust the page size for the text document.....i fixed it when i got in this morning and it looks great....thanks again to you both....just needed a sounding board i guess![]()
Dear All
I have 10 QTextDocument which has been positined by QPainter. Normaly I export the painter to PDF, now I would lile to export it to HTML with the position on PDF? Is there a posible way?
Hey, that's difficult because in the pdf you print an "image" and whereas the HTML its every time rendered by the used view.
But you could try to use absolute positioned divs with a fixed width. But be aware to calculate the screens resolution to get the best result. That should bring you pretty close to your achievement...
what I am trying to is , I want the user to create their reports output.
What I mean in more detail is, think that user is getting a report from a query and see this query in a QTableView. There are also QLineEdit's and etc on the widget.
Notmal I write a HTML code for the report so users uses it, but we get to much compain that we should let the user to design their reports. Normaly you know that with QTextDocument we could place the text on a pege where we want. Right now I want to place a QTextDocumen Where I want is that posible or should I chane the method?
I'm not quite understand your Query->tableview->html preview thing but, if you want the users to be able to move - globally speaking - a widget, then why you don't use a QGraphicsView for that, in the dimensions of your output page?
Bookmarks