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
47c9ac5c
Commit
47c9ac5c
authored
4 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
use Loader to destroy the victim button, which seems more realistic
parent
4f1181c2
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
+9
-6
9 additions, 6 deletions
main.qml
with
9 additions
and
6 deletions
main.qml
+
9
−
6
View file @
47c9ac5c
...
@@ -14,12 +14,15 @@ Window {
...
@@ -14,12 +14,15 @@ Window {
ColumnLayout
{
ColumnLayout
{
anchors.fill
:
parent
anchors.fill
:
parent
Button
{
Loader
{
id
:
button
id
:
button
Loader
Layout.alignment
:
Qt
.
AlignHCenter
Layout.alignment
:
Qt
.
AlignHCenter
text
:
"
Greeting to crash
"
active
:
true
onClicked
:
{
sourceComponent
:
Button
{
serviceObject
.
greeting
();
text
:
"
Greeting to crash
"
onClicked
:
{
serviceObject
.
greeting
();
}
}
}
}
}
...
@@ -36,7 +39,7 @@ Window {
...
@@ -36,7 +39,7 @@ Window {
interval
:
5000
interval
:
5000
onTriggered
:
{
onTriggered
:
{
console
.
log
(
"
triggered
"
);
console
.
log
(
"
triggered
"
);
button
.
destroy
()
;
button
Loader
.
active
=
false
;
}
}
}
}
}
}
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