38 lines
677 B
C++
38 lines
677 B
C++
|
|
// main.cpp
|
|
#include <QApplication>
|
|
|
|
#include <QWidget>
|
|
#include <QPushButton>
|
|
#include <QLabel>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QGridLayout>
|
|
#include <QPainter>
|
|
#include <QMouseEvent>
|
|
#include <QPropertyAnimation>
|
|
#include <QGraphicsDropShadowEffect>
|
|
#include <QLineEdit>
|
|
#include <QSlider>
|
|
#include <QCheckBox>
|
|
|
|
#include "FluentWidget.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
// Set font
|
|
QFont font;
|
|
font.setFamily("Segoe UI");
|
|
font.setPointSize(9);
|
|
app.setFont(font);
|
|
|
|
FluentWidget window;
|
|
window.setWindowTitle("Fluent Design Demo");
|
|
window.resize(1000, 800);
|
|
window.show();
|
|
|
|
return app.exec();
|
|
}
|