qt slider

qt slider

 QSlider *horizontalSlider = new QSlider();
 horizontalSlider->setObjectName(QString::fromUtf8("horizontalSlider"));
 horizontalSlider->setGeometry(QRect(200, 220, 160, 22));
 horizontalSlider->setOrientation(Qt::Horizontal);

QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget(horizontalSlider);
this->setLayout(layout);
文章目录