void MyPaint::setSize(double size ) { //Wt::WContainerWidget *container =new Wt::WContainerWidget(); MyPaint *paint = new MyPaint(container); Wt::WSpinBox *sb= new WSpinBox(container); sb->setRange(50,500); sb->setValue(250); sb->changed().connect(std::bind([=] () { paint->setEnd(sb->value()); })); }
int main(int argc, char **argv) { MyPaint paint; paint.show(); return 0; }
int main(int argc, char *argv[]) { QApplication app(argc, argv); MyPaint p; p.show(); return app.exec(); }