Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
NemoMobile
qtquickcontrols-nemo
Commits
7197e400
Commit
7197e400
authored
Jun 09, 2017
by
Sergey Chupligin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[examples] Fix start
parent
dfe1f0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
main.cpp
examples/touch/src/main.cpp
+13
-4
No files found.
examples/touch/src/main.cpp
View file @
7197e400
...
@@ -38,13 +38,22 @@
...
@@ -38,13 +38,22 @@
** $QT_END_LICENSE$
** $QT_END_LICENSE$
**
**
****************************************************************************/
****************************************************************************/
#include <QApplication>
#include <Q
tGui/QGui
Application>
#include <QQmlApplicationEngine>
#include <QQmlApplicationEngine>
#include <QtQuick/QQuickView>
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
QApplication
app
(
argc
,
argv
);
setenv
(
"QT_QUICK_CONTROLS_STYLE"
,
"Nemo"
,
1
);
QQmlApplicationEngine
engine
;
QGuiApplication
app
(
argc
,
argv
);
engine
.
load
(
QUrl
(
QStringLiteral
(
"/usr/share/glacier-components/main.qml"
)));
QQmlApplicationEngine
*
engine
=
new
QQmlApplicationEngine
(
QUrl
(
"/usr/share/glacier-components/main.qml"
));
QObject
*
topLevel
=
engine
->
rootObjects
().
value
(
0
);
QQuickWindow
*
window
=
qobject_cast
<
QQuickWindow
*>
(
topLevel
);
window
->
setTitle
(
QObject
::
tr
(
"Glacier components"
));
window
->
showFullScreen
();
return
app
.
exec
();
return
app
.
exec
();
}
}
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