blob: f4d3e830b3395e2d4136782b32d63970a37fe438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <QApplication>
#include <QWidget>
#include <QDial>
#include "ui_dials.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QWidget window;
Ui::Dials dialsUi;
dialsUi.setupUi(&window);
QList<QAbstractSlider *> sliders = window.findChildren<QAbstractSlider *>();
foreach (QAbstractSlider *slider, sliders)
slider->setAttribute(Qt::WA_AcceptTouchEvents);
window.showMaximized();
return app.exec();
}
|