标题:版主,麻烦你帮我瞧瞧
作者:weilong122
日期:2006-04-21 16:46
内容:
#include"gotocelldialog.h"
GoToCellDialog::GoToCellDialog(QWidget* parent):QDialog(parent)
{
//this->setObjectName(QString::fromUtf8("this"));
this->resize(QSize(335, 78).expandedTo(this->minimumSizeHint()));
gridLayout = new QGridLayout(this);
gridLayout->setSpacing(6);
gridLayout->setMargin(9);
// gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(6);
hboxLayout->setMargin(0);
//hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
label = new QLabel(tr("&Cell Location:"),this);
//label->setObjectName(QString::fromUtf8("label"));
hboxLayout->addWidget(label);
lineEdit = new QLineEdit(this);
//lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
hboxLayout->addWidget(lineEdit);
gridLayout->addLayout(hboxLayout, 0, 0, 1, 1);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setMargin(0);
//hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
spacerItem = new QSpacerItem(121, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem);
okButton = new QPushButton(tr("OK"),this);
//okButton->setObjectName(QString::fromUtf8("okButton"));
okButton->setEnabled(false);
okButton->setDefault(true);
hboxLayout1->addWidget(okButton);
cancelButton = new QPushButton(tr("Cancel"),this);
//cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
hboxLayout1->addWidget(cancelButton);
gridLayout->addLayout(hboxLayout1, 1, 0, 1, 1);
label->setBuddy(l ..
#1 [XChinux 04-21 17:27]
你的头文件里类定义完是不是没有加分号结束?
#2 [weilong122 04-21 18:01]
还真是
郁闷
太不小心了
谢谢XChinux