mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-26 22:27:06 +08:00
19 lines
386 B
C++
19 lines
386 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include "randomlistmodel.h"
|
|
#include <QListView>
|
|
#include <QApplication>
|
|
|
|
int main(int c, char **v)
|
|
{
|
|
QApplication a(c, v);
|
|
|
|
QListView view;
|
|
view.setUniformItemSizes(true);
|
|
view.setModel(new RandomListModel(&view));
|
|
view.show();
|
|
|
|
return a.exec();
|
|
}
|