Nice...
onepdf
->SetPage
(nowrender,
QSize(doc
->getPageWidth
(nowrender
),doc
->getPageHeight
(nowrender
)));
src->setWidget(onepdf);
onepdf->setMinimumHeight(doc->getPageHeight(nowrender) + 1);
onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
onepdf->SetPage(nowrender,QSize(doc->getPageWidth(nowrender),doc->getPageHeight(nowrender)));
src->setWidget(onepdf);
onepdf->setMinimumHeight(doc->getPageHeight(nowrender) + 1);
onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
src->setBackgroundRole(QPalette::Dark);
To copy to clipboard, switch view to plain text mode
I thought that:
onepdf
->SetPage
(nowrender,
QSize(doc
->getPageWidth
(nowrender
),doc
->getPageHeight
(nowrender
)));
onepdf->SetPage(nowrender,QSize(doc->getPageWidth(nowrender),doc->getPageHeight(nowrender)));
To copy to clipboard, switch view to plain text mode
was already setting the size of onepdf.
EDIT:
Shouldn't you use:
onepdf->setMinimumHeight(doc->getPageWidth(nowrender) + 1);
onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
onepdf->setMinimumHeight(doc->getPageWidth(nowrender) + 1);
onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
To copy to clipboard, switch view to plain text mode
You were setting page height for both minimum width and height.
Regards
Bookmarks