-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathExample.cpp
More file actions
29 lines (23 loc) · 775 Bytes
/
Example.cpp
File metadata and controls
29 lines (23 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Example.h"
#include "QProcessIndicator/QProcessIndicator.h"
Example::Example(QWidget *parent) :
QWidget(parent)
{
setFixedSize(256, 64);
QProcessIndicator *indicator = new QProcessIndicator(this);
indicator->setGeometry(16, 16, 64, 32);
indicator->setType(QProcessIndicator::line_rotate);
indicator->start();
indicator = new QProcessIndicator(this);
indicator->setGeometry(96, 16, 64, 32);
indicator->setType(QProcessIndicator::ball_rotate);
indicator->start();
indicator = new QProcessIndicator(this);
indicator->setGeometry(176, 16, 64, 32);
indicator->setType(QProcessIndicator::line_scale);
indicator->setInterval(125);
indicator->start();
}
Example::~Example()
{
}