int main(int argc, char * argv[]) { QApplication app(argc,argv); SortDialog *dialog = new SortDialog(); dialog->setColumnRange('C','X'); dialog->show(); return app.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); SortDialog w; w.setColumnRange('C', 'F'); w.show(); return a.exec(); }
void testDialog(){ /* * 1. public extend from QDialog and ui file. * 2. Q_OBJECT after class {, write constructor (QWidget *parent = 0). * 3. setupUi(this) in constructor. */ GoToCellDialog *dialog = new GoToCellDialog; dialog->show(); /* * An extension dialog need: * 1. a toggle button * 2. a few extra signal¨Cslot connections * 3. a non-resizable layout. */ SortDialog *sortDialog = new SortDialog; sortDialog->show(); }