예제 #1
0
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());
}));
}
예제 #2
0
int main(int argc, char **argv)
{
    MyPaint paint;
    paint.show();
    return 0;
}
예제 #3
0
int main(int argc, char *argv[]) {
     QApplication app(argc, argv);
     MyPaint p;
     p.show();
     return app.exec();
 }