1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "printoptions.h" #include "ui_printoptions.h" PrintOptions *PrintOptions::instance() { static PrintOptions *self = new PrintOptions(); return self; } PrintOptions::PrintOptions(QWidget *parent, Qt::WindowFlags f) : ui( new Ui::PrintOptions()) { ui->setupUi(this); }