How can I change QGraphicsView background using check box
问题 In this code,which change the QGraphicsView background.Now I need to change the background when I check true checkBox .When I set to checkBox to check true I need to set the background like this code.When I set checkBox to check false . I need to set QGraphicsView for normal default way. How can I do this. here is my code: mainwindow.cpp #include "mainwindow.h" #include <QGraphicsTextItem> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { scene = new Scene(this); scene-