Hi,
Can i add a new tool button in the QPrintPreviewDialog??
Hi,
Can i add a new tool button in the QPrintPreviewDialog??
You can use QPrintPreviewWidget to create your own custom dialog. QPrintPreviewDialog uses QPrintPreviewWidget internally.
Mithin
www.mithin.in
you mean we need to write a new class derived from QPrintPreviewWidget?
i need all the buttons currently available in dialog and then need to add a new button. so is there any simple method to add the button?
If possible, can u please show me an example?
You may easy add button to QPrintPreviewDialog by following
QAction *act = new QAction("aaa",this);
QList<QToolBar *> list = preview.findChildren<QToolBar *>();
list.at(0)->addAction(act);
Bookmarks