Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
28f2f251
Commit
28f2f251
authored
1 year ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
QDS-10772
The app crashes on exit if the quickwindow is created
parent
ddeb1b7d
No related branches found
No related tags found
1 merge request
!7
QDS-10772 The app crashes on exit if the quickwindow is created
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
design-viewer/src/dv_android.cpp
+5
-8
5 additions, 8 deletions
design-viewer/src/dv_android.cpp
design-viewer/src/dv_android.h
+0
-1
0 additions, 1 deletion
design-viewer/src/dv_android.h
design-viewer/src/dv_base.h
+1
-1
1 addition, 1 deletion
design-viewer/src/dv_base.h
with
6 additions
and
10 deletions
design-viewer/src/dv_android.cpp
+
5
−
8
View file @
28f2f251
...
...
@@ -255,9 +255,11 @@ void DvAndroid::showAppWindow()
}
printLog
(
"Initializing and showing the QML app window"
);
m_appWindow
.
reset
(
QWidget
::
createWindowContainer
(
m_quickWindow
.
data
()));
m_appWindow
->
show
();
m_appWindow
->
raise
();
m_quickWindow
->
setFlags
(
m_quickWindow
->
flags
()
|
Qt
::
WindowStaysOnTopHint
);
m_quickWindow
->
show
();
m_quickWindow
->
raise
();
m_quickWindow
->
requestActivate
();
printLog
(
"Final Sizing:"
);
printLog
(
"-- Main window height: "
+
QString
::
number
(
m_mainWindow
.
height
()));
...
...
@@ -268,11 +270,6 @@ void DvAndroid::showAppWindow()
printLog
(
"-- Quick window pos-x: "
+
QString
::
number
(
m_quickWindow
->
position
().
x
()));
printLog
(
"-- Quick window pos-y: "
+
QString
::
number
(
m_quickWindow
->
position
().
y
()));
printLog
(
"-- App window height: "
+
QString
::
number
(
m_appWindow
->
height
()));
printLog
(
"-- App window width: "
+
QString
::
number
(
m_appWindow
->
width
()));
printLog
(
"-- App window pos-x: "
+
QString
::
number
(
m_appWindow
->
pos
().
x
()));
printLog
(
"-- App window pos-y: "
+
QString
::
number
(
m_appWindow
->
pos
().
y
()));
printLog
(
"-- Content item height: "
+
QString
::
number
(
contentItem
->
height
()));
printLog
(
"-- Content item width: "
+
QString
::
number
(
contentItem
->
width
()));
printLog
(
"-- Content item scale: "
+
QString
::
number
(
contentItem
->
scale
()));
...
...
This diff is collapsed.
Click to expand it.
design-viewer/src/dv_android.h
+
0
−
1
View file @
28f2f251
...
...
@@ -45,7 +45,6 @@ public:
private:
// UI components
QWidget
m_mainWindow
;
QSharedPointer
<
QWidget
>
m_appWindow
;
QVBoxLayout
*
m_layout
{
new
QVBoxLayout
};
QLabel
*
m_logo
{
new
QLabel
};
QLabel
*
m_buildInfo
{
new
QLabel
};
...
...
This diff is collapsed.
Click to expand it.
design-viewer/src/dv_base.h
+
1
−
1
View file @
28f2f251
...
...
@@ -42,7 +42,7 @@ public:
virtual
bool
initialize
()
=
0
;
protected:
QS
har
edPointer
<
QQuickWindow
>
m_quickWindow
;
QS
cop
edPointer
<
QQuickWindow
>
m_quickWindow
;
QQmlEngine
m_qmlEngine
;
QQmlComponent
m_qmlComponent
{
&
m_qmlEngine
};
...
...
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