Add QComboBox to QPrintPreviewDialog toolbar

  • Hi all,

    I have created a QPrintPreviewDialog as below code.

    @ void showPrintPreview()
    AppSettings settings;
    QPrinter printer;
    QPrintPreviewDialog preview( &printer );

    Now I need to change the displaying document in preview according to the selection of user. So I think to add a QComboBox to the toolbar of QPrintPreviewDialog.

    1) Can anybody tell me is it possible?

    1. If possible I would like to know best way of doing that.

    Thank you all.. waiting for helping hand..

  • If this way not possible can anybody suggest a solution.. :)

    Thank you..

  • You may try to use QPrintPreviewWidget and build your own dialog

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.