Tagged: QT

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 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 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...

0

Camera Calibration with OpenCV

This post is about distortions and to undistort them and calibrating your camera with matrices. OpenCV has many great weapons in it’s own arsenal one of them is calib3d. My intent is to share a block of code and explain it to you. May be I feed this post with my own repository for you. I’m listing general steps in my own flow: Printing a chessboard image is a must....

0

MySQL Driver Issue with QT on Ubuntu 16 and 18 LTS

There can be a lot of Stackover and QT Forum threads about this issue. I had to read most of them till got the right solution.It doesn’t matter if I set my .pro file correctly or not if didn’t install MySQL driver’s version needed by QTIf you faced with “QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7” and wanted to smash your computer’s...

0

OpenVINO with QT on Linux

OpenVINO is a toolkit has developed by Intel. It offers to developers “a powerful portfolio of scalable hardware and software solutions”. Summary of short story it’s a bundle of computer vision and deep learning solutions under it’s environment. You can access it’s installation document for Linux distributions via this link. It was painful for me to use OpenVINO’s Open Model Zoo demos with QT. Honestly, the hardest part of development...