本文整理汇总了C++中QScrollArea::move方法的典型用法代码示例。如果您正苦于以下问题:C++ QScrollArea::move方法的具体用法?C++ QScrollArea::move怎么用?C++ QScrollArea::move使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QScrollArea
的用法示例。
在下文中一共展示了QScrollArea::move方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QFrame
EventVideoDownloadsWindow::EventVideoDownloadsWindow(QWidget *parent) :
QFrame(parent)
{
setAttribute(Qt::WA_DeleteOnClose, true);
setMinimumSize(550, 300);
setWindowTitle(tr("Bluecherry - Download Manager"));
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(2);
layout->setMargin(2);
QScrollArea *downloadArea = new QScrollArea(this);
downloadArea->setBackgroundRole(QPalette::Base );
downloadArea->move(0, 0);
layout->addWidget(downloadArea);
QFrame *downloadFrame = new QFrame;
downloadFrame->setBackgroundRole(QPalette::Base);
downloadFrame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
m_downloadLayout = new QVBoxLayout(downloadFrame);
m_downloadLayout->setDirection(QBoxLayout::Up);
downloadArea->setWidget(downloadFrame);
downloadArea->setWidgetResizable(true);
QSettings settings;
restoreGeometry(settings.value(QLatin1String("ui/downloadsWindow/geometry")).toByteArray());
connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(saveSettings()));
}
示例2: file
ReportGenerationDialog::ReportGenerationDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ReportGenerationDialog),patientTracker(NULL)
{
ui->setupUi(this);
ui->presetDiagnosisComboBox->setEnabled(true);
ui->diagnosisEditor->setEnabled(false);
ui->screenshotListView->setModel(&screenshotModel);
ui->screenshotListView->setIconSize(QSize(225, 225));
ui->selectedScreenshotListView->setModel(&selectedScreenshotModel);
ui->selectedScreenshotListView->setIconSize(QSize(175, 175));
QScrollArea *area = new QScrollArea(this);
area->move(10, 90);
area->resize(781, 600);
area->setWidget(ui->centreWidget);
ui->tcdInfoTableView->setModel(&selectedValuesModel);
QStringList headerList;
headerList << "截图" << "血管名" << "Mean" << "Peak" << "EDV" << "PI" << "RI" << "S/D" << "HR";
selectedValuesModel.setHorizontalHeaderLabels(headerList);
QFile file("./PresetDiagnoses.txt");
QTextStream in;
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QMessageBox::warning(NULL, "预设诊断读取", "预设诊断读取失败!");
}
else
{
in.setDevice(&file);
QString line;
line = in.readLine();
while (!line.isNull()) {
ui->presetDiagnosisComboBox->addItem(line);
diagnosesModel.appendRow(new QStandardItem(line));
line = in.readLine();
}
}
}
示例3: dir
//.........这里部分代码省略.........
connect( m_bufSizeSlider, SIGNAL( valueChanged( int ) ), this,
SLOT( setBufferSize( int ) ) );
m_bufSizeLbl = new QLabel( bufsize_tw );
m_bufSizeLbl->setGeometry( 10, 40, 200, 24 );
setBufferSize( m_bufSizeSlider->value() );
QPushButton * bufsize_reset_btn = new QPushButton(
embed::getIconPixmap( "reload" ), "", bufsize_tw );
bufsize_reset_btn->setGeometry( 290, 40, 28, 28 );
connect( bufsize_reset_btn, SIGNAL( clicked() ), this,
SLOT( resetBufSize() ) );
ToolTip::add( bufsize_reset_btn, tr( "Reset to default-value" ) );
QPushButton * bufsize_help_btn = new QPushButton(
embed::getIconPixmap( "help" ), "", bufsize_tw );
bufsize_help_btn->setGeometry( 320, 40, 28, 28 );
connect( bufsize_help_btn, SIGNAL( clicked() ), this,
SLOT( displayBufSizeHelp() ) );
TabWidget * misc_tw = new TabWidget( tr( "MISC" ), general );
const int XDelta = 10;
const int YDelta = 18;
const int HeaderSize = 30;
int labelNumber = 0;
LedCheckBox * enable_tooltips = new LedCheckBox(
tr( "Enable tooltips" ),
misc_tw );
labelNumber++;
enable_tooltips->move( XDelta, YDelta*labelNumber );
enable_tooltips->setChecked( m_toolTips );
connect( enable_tooltips, SIGNAL( toggled( bool ) ),
this, SLOT( toggleToolTips( bool ) ) );
LedCheckBox * restart_msg = new LedCheckBox(
tr( "Show restart warning after changing settings" ),
misc_tw );
labelNumber++;
restart_msg->move( XDelta, YDelta*labelNumber );
restart_msg->setChecked( m_warnAfterSetup );
connect( restart_msg, SIGNAL( toggled( bool ) ),
this, SLOT( toggleWarnAfterSetup( bool ) ) );
LedCheckBox * dbv = new LedCheckBox( tr( "Display volume as dBV " ),
misc_tw );
labelNumber++;
dbv->move( XDelta, YDelta*labelNumber );
dbv->setChecked( m_displaydBV );
connect( dbv, SIGNAL( toggled( bool ) ),
this, SLOT( toggleDisplaydBV( bool ) ) );
LedCheckBox * mmpz = new LedCheckBox(
tr( "Compress project files per default" ),
misc_tw );
labelNumber++;
mmpz->move( XDelta, YDelta*labelNumber );
mmpz->setChecked( m_MMPZ );
connect( mmpz, SIGNAL( toggled( bool ) ),
this, SLOT( toggleMMPZ( bool ) ) );