It's a exercise to implement a simple up/down counter using Qt Creator 2.0.0 in Nokis Qt SDK 1.0.
- Create a new Mobile Qt Application
Click File -> New File or Project...
Select Qt C++ Project and Mobile Qt Application, click Choose...
Enter name of the project, eg. UpDown_Counter, and click Next.
Accept to select all the targets for the project, click Next.
Review and accept the class information, click Next, then Finish.
- Place the UI elements.
The Design mode will be opened after the project files generated automatically.
Place a Label and four Push Button as the picture below.
Change the objectName and text of the UI elements:
label: Counter, with text "0".
Push Button: pushButtonUp, with text "Up".
Push Button: pushButtonDown, with text "Down".
Push Button: pushButtonClear, with text "Clear".
Push Button: pushButtonQuit, with text "Quit".
- Run the Application with UI elements only
Now, you can Save All and Run the application.
Up to now, we have place the elements on the screen without any function. The function will be added in comming articles.
Labels
Dev. tools
(13)
how to
(10)
Internet of Things (IoT)
(1)
learn Qt
(1)
misc
(1)
misc.
(1)
mobile
(2)
news
(6)
OpenCV
(1)
OpenGL
(1)
QML
(1)
qml example
(40)
Qt
(2)
Qt Cloud
(1)
Qt Creator
(3)
Qt Creator Examples
(4)
Qt Enterprise Embedded
(1)
Qt Examples
(1)
Qt for Android
(5)
Qt for iOS
(2)
Qt for MCU
(1)
Qt news
(1)
Qt Quick
(3)
Qt Quick Control
(1)
Qt Quick Designer
(2)
QtQuick example
(14)
QtQuick.Controls examples
(13)
Ubuntu SDK
(1)
VirtualBox
(1)
WebEngine
(1)