GVar= (int)(ui.horizontalSlider->value());
MySlot::scene.addEllipse (10, 10, GVar, GVar,
QPen(Qt
::black,
15, Qt
::SolidLine, Qt
::RoundCap,
Qt::MiterJoin),
QBrush(Qt
::blue, Qt
::DiagCrossPattern));
MySlot::scene.setBackgroundBrush(Qt::red);
MySlot::view->update();
MySlot::view->setAttribute(Qt::WA_DeleteOnClose);
MySlot::view ->show();
}
GVar= (int)(ui.horizontalSlider->value());
MySlot::scene.addEllipse (10, 10, GVar, GVar,
QPen(Qt::black, 15, Qt::SolidLine, Qt::RoundCap,
Qt::MiterJoin),
QBrush(Qt::blue, Qt::DiagCrossPattern));
MySlot::scene.setBackgroundBrush(Qt::red);
MySlot::view->update();
MySlot::view->setAttribute(Qt::WA_DeleteOnClose);
MySlot::view ->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks