mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 00:05:25 +08:00
qt 6.5.1 original
This commit is contained in:
16
tests/manual/repaint/splitter/CMakeLists.txt
Normal file
16
tests/manual/repaint/splitter/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## splitter Binary:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_add_manual_test(splitter
|
||||
GUI
|
||||
SOURCES
|
||||
../shared/shared.h
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
)
|
23
tests/manual/repaint/splitter/main.cpp
Normal file
23
tests/manual/repaint/splitter/main.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "../shared/shared.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <QSplitter>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
QSplitter splitter;
|
||||
|
||||
splitter.addWidget(new StaticWidget());
|
||||
splitter.addWidget(new StaticWidget());
|
||||
|
||||
splitter.resize(600, 400);
|
||||
splitter.show();
|
||||
|
||||
return app.exec();
|
||||
}
|
3
tests/manual/repaint/splitter/splitter.pro
Normal file
3
tests/manual/repaint/splitter/splitter.pro
Normal file
@ -0,0 +1,3 @@
|
||||
QT += widgets
|
||||
HEADERS += ../shared/shared.h
|
||||
SOURCES += main.cpp
|
Reference in New Issue
Block a user