понедельник, 10 января 2011 г.

qt +add dynamic widgets

//pushButton->setObjectName(QString::fromUtf8("pushButton"));
    //pushButton->setGeometry(QRect(310, 20, 75, 23));
    QPushButton *button = new QPushButton(this);
    button->setText("Hello");
    button->setGeometry(QRect(31, 31, 31, 31));
    this->ui->pushButton->setEnabled(false);
    QObject::connect(button, SIGNAL(clicked()), this, SLOT(View_MSG()));
    //button.parent(this->ui->DialogXX);
    button->show();
    return;