本文整理汇总了C++中QTextBrowser::setEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ QTextBrowser::setEnabled方法的具体用法?C++ QTextBrowser::setEnabled怎么用?C++ QTextBrowser::setEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QTextBrowser
的用法示例。
在下文中一共展示了QTextBrowser::setEnabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupUi
//.........这里部分代码省略.........
horizontalLayout_4->addWidget(uavTakeoffLandButton);
gridLayout->addLayout(horizontalLayout_4, 2, 0, 1, 1);
horizontalLayout_2 = new QHBoxLayout();
horizontalLayout_2->setSpacing(6);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
label = new QLabel(gridLayoutWidget);
label->setObjectName(QString::fromUtf8("label"));
horizontalLayout_2->addWidget(label);
ugvSpeedLCD = new QLCDNumber(gridLayoutWidget);
ugvSpeedLCD->setObjectName(QString::fromUtf8("ugvSpeedLCD"));
ugvSpeedLCD->setFrameShape(QFrame::Box);
horizontalLayout_2->addWidget(ugvSpeedLCD);
gridLayout->addLayout(horizontalLayout_2, 4, 2, 1, 1);
horizontalLayout_6 = new QHBoxLayout();
horizontalLayout_6->setSpacing(6);
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
label_3 = new QLabel(gridLayoutWidget);
label_3->setObjectName(QString::fromUtf8("label_3"));
horizontalLayout_6->addWidget(label_3);
ugvSpeakerButton = new QPushButton(gridLayoutWidget);
ugvSpeakerButton->setObjectName(QString::fromUtf8("ugvSpeakerButton"));
horizontalLayout_6->addWidget(ugvSpeakerButton);
gridLayout->addLayout(horizontalLayout_6, 2, 2, 1, 1);
verticalLayout = new QVBoxLayout();
verticalLayout->setSpacing(6);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
label_4 = new QLabel(gridLayoutWidget);
label_4->setObjectName(QString::fromUtf8("label_4"));
label_4->setAlignment(Qt::AlignCenter);
verticalLayout->addWidget(label_4);
sauverStatus = new QTextBrowser(gridLayoutWidget);
sauverStatus->setObjectName(QString::fromUtf8("sauverStatus"));
sauverStatus->setEnabled(true);
QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Minimum);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(sauverStatus->sizePolicy().hasHeightForWidth());
sauverStatus->setSizePolicy(sizePolicy2);
sauverStatus->setMaximumSize(QSize(777215, 215));
verticalLayout->addWidget(sauverStatus);
gridLayout->addLayout(verticalLayout, 4, 3, 1, 1);
label_5 = new QLabel(gridLayoutWidget);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout->addWidget(label_5, 0, 0, 1, 1);
Detection->setCentralWidget(centralWidget);
menuBar = new QMenuBar(Detection);
menuBar->setObjectName(QString::fromUtf8("menuBar"));
menuBar->setGeometry(QRect(0, 0, 729, 23));
menuFile = new QMenu(menuBar);
menuFile->setObjectName(QString::fromUtf8("menuFile"));
menu_Tools = new QMenu(menuBar);
menu_Tools->setObjectName(QString::fromUtf8("menu_Tools"));
menu_Help = new QMenu(menuBar);
menu_Help->setObjectName(QString::fromUtf8("menu_Help"));
Detection->setMenuBar(menuBar);
mainToolBar = new QToolBar(Detection);
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar"));
Detection->addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar = new QStatusBar(Detection);
statusBar->setObjectName(QString::fromUtf8("statusBar"));
Detection->setStatusBar(statusBar);
menuBar->addAction(menuFile->menuAction());
menuBar->addAction(menu_Tools->menuAction());
menuBar->addAction(menu_Help->menuAction());
menuFile->addAction(action_Load_Map);
menuFile->addAction(action_Disconnect);
menuFile->addAction(actionE_xit);
menu_Tools->addAction(action_Connect);
retranslateUi(Detection);
QObject::connect(actionE_xit, SIGNAL(activated()), Detection, SLOT(close()));
QObject::connect(action_Connect, SIGNAL(activated()), connectionButton, SLOT(click()));
QMetaObject::connectSlotsByName(Detection);
} // setupUi