Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quick-nested-event-loop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuya Nishihara
quick-nested-event-loop
Commits
4f1181c2
Commit
4f1181c2
authored
4 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
add button to toggle timer
parent
b51ae6f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.qml
+11
-1
11 additions, 1 deletion
main.qml
with
11 additions
and
1 deletion
main.qml
+
11
−
1
View file @
4f1181c2
...
...
@@ -4,6 +4,8 @@ import QtQuick.Layouts 1.12
import
QtQuick
.
Window
2.12
Window
{
id
:
root
width
:
640
height
:
480
visible
:
true
...
...
@@ -14,15 +16,23 @@ Window {
Button
{
id
:
button
Layout.alignment
:
Qt
.
AlignHCenter
text
:
"
Greeting to crash
"
onClicked
:
{
serviceObject
.
greeting
();
}
}
Button
{
id
:
timerButton
Layout.alignment
:
Qt
.
AlignHCenter
text
:
"
start timer to destroy
"
checkable
:
true
}
}
Timer
{
running
:
t
rue
running
:
t
imerButton
.
checked
interval
:
5000
onTriggered
:
{
console
.
log
(
"
triggered
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment