当前位置: 首页>>代码示例>>C++>>正文


C++ setStatusTip函数代码示例

本文整理汇总了C++中setStatusTip函数的典型用法代码示例。如果您正苦于以下问题:C++ setStatusTip函数的具体用法?C++ setStatusTip怎么用?C++ setStatusTip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setStatusTip函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: QAction

## packaging of self file.  Please review the following information to
## ensure the GNU Lesser General Public License version 2.1 requirements
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
##
## In addition, as a special exception, Nokia gives you certain
## additional rights. These rights are described in the Nokia Qt LGPL
## Exception version 1.0, included in the file LGPL_EXCEPTION.txt in self
## package.
##
## GNU General Public License Usage
## Alternatively, self file may be used under the terms of the GNU
## General Public License version 3.0 as published by the Free Software
## Foundation and appearing in the file LICENSE.GPL included in the
## packaging of self file.  Please review the following information to
## ensure the GNU General Public License version 3.0 requirements will be
## met: http://www.gnu.org/copyleft/gpl.html.
##
## If you are unsure which license is appropriate for your use, please
## contact the sales department at http://www.qtsoftware.com/contact.
## $QT_END_LICENSE$
##
############################################################################

//! [0]
    Act = QAction(tr("&New"), self)
    Act.setShortcut(tr("Ctrl+N"))
    Act.setStatusTip(QObject.tr("Create a new file"))
    Act.setWhatsThis(QObject.tr("Click self option to create a new file."))
//! [0]

开发者ID:Hasimir,项目名称:PySide,代码行数:29,代码来源:whatsthis.cpp

示例2: retranslateUi

 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Video Capture Settings..."));
     setStatusTip(QApplication::translate("UIActionPool", "Configure video capture settings"));
 }
开发者ID:MadHacker217,项目名称:VirtualBox-OSE,代码行数:5,代码来源:UIActionPoolRuntime.cpp

示例3: setToolTip

// +-----------------------------------------------------------
void fsdk::VolumeButton::refreshUI()
{
	setToolTip(tr("Volume: %1%").arg(volume()));
	setStatusTip(tr("Sets the audio volume in this video window"));
}
开发者ID:luigivieira,项目名称:fun-sdk,代码行数:6,代码来源:volumebutton.cpp

示例4: tr

void TscoreClef::getStatusTip() {
    QString tip = "<b>" + m_clef.name() + "</b>  (" + m_clef.desc() + ")";
    if (!readOnly())
        tip += "<br>" + tr("Click to select another clef.");
    setStatusTip(tip);
}
开发者ID:SeeLook,项目名称:nootka,代码行数:6,代码来源:tscoreclef.cpp

示例5: setStatusTip

void accidSettings::updateStatusTip() {
  setStatusTip("<b>" + tr("Elements are disabled because appropriate types of questions or answers are not selected.") + "</b>");
}
开发者ID:SeeLook,项目名称:nootka,代码行数:3,代码来源:accidsettings.cpp

示例6: QGroupBox

QHardwareWidget::QHardwareWidget(QWidget* pParent) :
	QGroupBox(pParent),
	m_MainLayout(),
	m_Devices(),
	m_OptimalDevice()
{
	setTitle("Hardware Selection");
	setStatusTip("Hardware Selection");
	setToolTip("Hardware Selection");

	m_MainLayout.setColumnMinimumWidth(0, 75);
	setLayout(&m_MainLayout);

	int DriverVersion = 0, RuntimeVersion = 0; 

	cudaDriverGetVersion(&DriverVersion);
	cudaRuntimeGetVersion(&RuntimeVersion);

	QString DriverVersionString		= QString::number(DriverVersion / 1000) + "." + QString::number(DriverVersion % 100);
	QString RuntimeVersionString	= QString::number(RuntimeVersion / 1000) + "." + QString::number(RuntimeVersion % 100);

	gStatus.SetStatisticChanged("Graphics Card", "CUDA Driver Version", DriverVersionString);
	gStatus.SetStatisticChanged("Graphics Card", "CUDA Runtime Version", RuntimeVersionString);

	QString VersionInfo;

	VersionInfo += "CUDA Driver Version: " + DriverVersionString;
	VersionInfo += ", CUDA Runtime Version: " + RuntimeVersionString;

	m_MainLayout.addWidget(new QLabel(VersionInfo), 0, 0, 1, 2);
	
	m_MainLayout.addWidget(&m_Devices, 1, 0, 1, 2);

	m_Model.EnumerateDevices();

	m_Devices.horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
	m_Devices.horizontalHeader()->setStretchLastSection(true); 
	m_Devices.horizontalHeader()->setDefaultSectionSize(1);
	m_Devices.horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
	m_Devices.horizontalHeader()->setHighlightSections(false);
	m_Devices.verticalHeader()->setVisible(false);
	m_Devices.verticalHeader()->setDefaultSectionSize(20);
	m_Devices.setSelectionMode(QAbstractItemView::SingleSelection);
	m_Devices.setSelectionBehavior(QAbstractItemView::SelectRows);
	m_Devices.setFixedHeight(75);

	m_Devices.setModel(&m_Model);

	m_OptimalDevice.setText("Optimal Device");
	m_OptimalDevice.setToolTip("Optimal Device");
	m_OptimalDevice.setStatusTip("Choose the most optimal device for rendering");
	m_OptimalDevice.setFixedWidth(90);
	m_OptimalDevice.setVisible(m_Model.rowCount(QModelIndex()) > 1);

	m_MainLayout.addWidget(&m_OptimalDevice);
	
	QObject::connect(&m_OptimalDevice, SIGNAL(clicked()), this, SLOT(OnOptimalDevice()));
	QObject::connect(&m_Devices, SIGNAL(clicked(const QModelIndex&)), this, SLOT(OnSelection(const QModelIndex&)));

	OnOptimalDevice();
}
开发者ID:ChuckDanglars,项目名称:exposure-render.release110,代码行数:61,代码来源:HardwareWidget.cpp


注:本文中的setStatusTip函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。