Author: Muhammet Küçük

0

QT Notifications Chapter 2 – Using Snorenotify

Hope you managed to install KDE/snorenotify from my previous post. This time it’s talks to about a sample project to display notifications. Actually I’ve just peaked on it’s test cpp file and reorganized it to send a test from UI. Snore example can get from my GitHub repository. For building project don’t forget to set LibsnoreSettingsQt5_DIR and LibsnoreQt5_DIR paths. It’s just a simple QML screen has 2 text inputs and...

0

QT Notifications Chapter 1 – Installing Snorenotify

Hello, it’s been a while to not post about any topic. Right now I’ve found a new content for myself to talk about. It’s notifications. Firstly I’ll talk about QT’s QSystemTrayIcon class, then explain why it’s not enough. Let’s dive into QSystemTrayIcon. Here is a link for my dummy sample. showMessage method display’s system wide notification and connect connects whenever it is clicked to handler slot. (I know connect should...

0

QT Testing 2 – a Warm Welcome for Code Coverage

It is the most sexiest part of testing for me. You’ve made some unit tests for your project but you don’t know how much of your code you’ve tested or “covered” 🙂 It is out of your control and you’re about to loose your sanity. At first gods have created Gcov , but with LCOV it is sexy, because it gives you graphical output with html results. It’s revolutionary!!! Project...

0

QT Testing 1 – Do you trust your code? Here is the mighty QTest

In first post of testing series I’ve mentioned about multiple targets as a starting point. Now it’s time to add a class to show testing utility. In main target let’s have a class called Calculations. Goal is to test this Calculations class methods. Project source code can get from repository. There is a class in Main_Target to test our code and cover it up. It’s time to have a testing...

0

QT Testing 0 – Creating Multiple Targets with CMake

At first, I was about to start 1st chapter and talk about QT’s Testing with QTest. My aim is to use CMake instead of QMake, so unimportant side of community has issues about CMake. This is why first I will talk about multiple targets and why do we need it for testing. Sample code is available on GitHub Unit tests are about testing the class, methods your code. but you...

0

QT Deployment V – Separating Build and Install Time

It’s the last post of this deployment life cycle. In the 2nd chapter C QT Deployer tool were called in post build process. It is okay, but not that okay. Every build time it’s deploying package. In a light weighted QML application it doesn’t take much time, what about a complex project, is it nice to wait for several minutes? To prevent that build time and install time should be...

0

QT Deployment IV – Generating a .deb package with CPack

In the previous post I demonstrated how to deploy with terminal commands and it’s a primitive way not an automated one. This time it’s time to use CPack utility of CMake to create our own deployable .deb package. You can get sample project from GitHub repository. Setting CMakeLists.txt Let’s open up our favorite editor or QT Creator IDE to edit CMakeLists.txt file. I’ll add a project version to display below...

0

QT Deployment III – Generating a .deb package with Terminal command

It’s the 3rd chapter of deployment series. Why do you want to have a deb packaging? Well, it gives upgradability, integration and packaging related with your file system. You can add it to your ppa and call with apt install command. It’s the legacy version of packaging. This chapter’s content files are added to GitHub Repository. In first two chapters I’ve demonstrated to create with Qt’s installer framework option. This...

0

QT Deployment II – CMake for Automation

Matter of CMake In previous blog post I’ve created a QT Quick application with CMake. It was not pointless. CMake allows us to call post build functions and template management. Post build means when you create your target, I mean your binary is created you can call some functions or do some operations. Template management is another story. Imagine a workspace with more than one developer. Everyone has different file...

0

QT Deployment I – C Qt Deployer Tool to Deploy Qt Applications

Installing Should I quote a description or not? Whenever you build your project if you copy and paste your binary to another machine, it probably fails. It’s not a big surprise because of binary cannot link itself with the libraries and other dependencies that needs for to run. C QT Deployer, is an opensource project to take our pain away. It extract all dependencies, pack it up for us. It...