Customizable desktop clock widget written in Qt5 framework.
To get started make sure you have all the following requirements and after that open desktop-clock project with Qt Creator.
- Qt 5
- Qt Creator
- Qt Installer Framework 3
- Git
desktop-clock project uses submodule itay-grudev/SingleApplication to enchant application with singleton implementation.
Make sure that you have pulled all submodules before build phase, you can do this by using command:
git submodule update --init --recursive
You can monitor build process by keeping Compile Output (Alt + 4) tab open in Qt Creator,
it is very useful in case something goes wrong and you need to see error messages.
- Start by navigating to
Projectsand make sure thatActive Projectis set todesktop-clockin side menu. - Under the
Build Settingsheader there is dropdown with labelEdit build configuration, change this to berelease. - Next thing to do is to disable/untick
Shadow buildoption, by doing so Qt Creator will use project folder as destination folder.
Now you are ready to start adding Custom Process Steps,
you can add them by clicking caret in dropdown that has text Add Build Step inside,
after dropdown opens select Custom Process Step, this gives you a new form to fill up.
-
Command
For field with label
Commandfirst thing to do is to locatewindeployqt.exeon your filesystem. If this binary exists in your environment's PATH variable then you can just enter the name of the binary without any leading directories.This binary is usually located at
{Qt Directory}\{Qt Version}\{Compiler Directory}\bin\windeployqt.exe -
Arguments
For field with label
Argumentsenter following value:installer\packages\eu.murda.desktopclock\data\desktop-clock.exe -
Working directory
For field with label
Working directorymake sure that value is set to%{buildDir}, it usually is by default.
-
Command
For field with label
Commandfirst thing to do is to locatebinarycreator.exeon your filesystem. If this binary exists in your environment's PATH variable then you can just enter name of the binary without any leading directories.This binary is usually located at
{Qt Directory}\Tools\QtInstallerFramework\3.{*}\bin\binarycreator.exe -
Arguments
For field with label
Argumentsenter following value:--offline-only -c installer\config\config.xml -p installer\packages installer\DesktopClockInstaller.exe -
Working directory
For field with label
Working directorymake sure that value is set to%{buildDir}, it usually is by default.
This step is completely optional, but by adding this step your final installer file will be much smaller in size.
You can download upx.exe binary from here: https://upx.github.io
-
Command
For field with label
Commandfirst thing to do is to locateupx.exeon your filesystem. If this binary exists in your environment's PATH variable the you can just enter name of the binary without any leading directories. -
Arguments
For field with label
Argumentsenter following value:-9 installer\DesktopClockInstaller.exe -
Working directory
For field with label
Working directorymake sure that value is set to%{buildDir}, it usually is by default.
Final installer file will be located in directory installer and named DesktopClockInstaller.exe.

