Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
Qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张泽仁
Qt
Commits
313a0074
Commit
313a0074
authored
Nov 08, 2023
by
张泽仁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
f40212a7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
403 additions
and
0 deletions
+403
-0
main.cpp
demo/test_widget/main.cpp
+11
-0
test_widget.pro
demo/test_widget/test_widget.pro
+28
-0
test_widget.pro.user
demo/test_widget/test_widget.pro.user
+337
-0
widget.cpp
demo/test_widget/widget.cpp
+11
-0
widget.h
demo/test_widget/widget.h
+16
-0
No files found.
demo/test_widget/main.cpp
0 → 100644
View file @
313a0074
#include "widget.h"
#include <QApplication>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
a
(
argc
,
argv
);
Widget
w
;
w
.
show
();
return
a
.
exec
();
}
demo/test_widget/test_widget.pro
0 → 100644
View file @
313a0074
QT
+=
core
gui
greaterThan
(
QT_MAJOR_VERSION
,
4
)
:
QT
+=
widgets
CONFIG
+=
c
++
11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES
+=
QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES
+=
\
main
.
cpp
\
widget
.
cpp
HEADERS
+=
\
widget
.
h
# Default rules for deployment.
qnx
:
target
.
path
=
/
tmp
/
$$
{
TARGET
}
/
bin
else
:
unix
:
!
android
:
target
.
path
=
/
opt
/
$$
{
TARGET
}
/
bin
!
isEmpty
(
target
.
path
)
:
INSTALLS
+=
target
demo/test_widget/test_widget.pro.user
0 → 100644
View file @
313a0074
This diff is collapsed.
Click to expand it.
demo/test_widget/widget.cpp
0 → 100644
View file @
313a0074
#include "widget.h"
Widget
::
Widget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
}
Widget
::~
Widget
()
{
}
demo/test_widget/widget.h
0 → 100644
View file @
313a0074
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QPushButton>
class
Widget
:
public
QWidget
{
Q_OBJECT
public
:
Widget
(
QWidget
*
parent
=
nullptr
);
~
Widget
();
};
#endif // WIDGET_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment