构造函数如下所示:
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);
    this->setWindowFlags (Qt::Window);
    this->showFullScreen();
    taishiback=new QWidget;
    taishiback->setGeometry(0,0,800,600);
    //taishiback->setAutoFillBackground(true);
    //ui->verticalLayout->addWidget(taishi);
    //taishiback->show();
   //taishiback->setParent(this);
   lab1=new QLabel;
   lab1->setGeometry(0,1100,50,100);
   lab1->setText("1234555");
   lab1->setParent(this);
}
看很多例程中都使用了布局管理器,难道不使用就不能显示出来吗?还有哪里有问题?
如果说this没有添加新建的控件,那么应该用this的哪个成员函数?