Muhammet Küçük Blog

0

Extending QML’s Component with C++

So this post is about to extend Qt’s QML components. I was in the need of a few extra features for QML’s TextArea component like getting the width of last line from wrapped text and it is not possible with TextArea. So I decided to derive my own class from TextArea’s class and keep going on to my way. But it was kind of possible too. I decided to make...

0

Serial Port Communication Essentials

Well well,Time to time we need to communicate with SBC (Single Board Computer, eg: Raspberry Pi) or embedded hardware via Serial Port. There are lots of sample codes over GitHub, that’s true. Even a monkey can run a project without knowledge, it can be harsh, but I’m being honest. Just plug VCC, GND, TX, RX and if it doesn’t work invert TX and RX ports woalaa! Anyway, now I’m trying...

0

Function Templates and Operator Overloading

std::cout << “Hello Readers!” << std::endl;In this blog post I’m going to show you a short example of a function template by using a struct and operator overloading. Function templates are blueprints of your function, it plugging-in the type that’s needed. Compiler generates the functions in compile time. The trick is if you use an operator, your type must support it! Otherwise, you have to overload that operator. Right now...

1

Install Node.js from linux tar.gz file

First thing you gone over Node.js’s website and tried to download LTS or the Current version and you managed to extract tar.gz file too. You’re okay until you don’t know what you’re about to do with files that you’ve extracted. I know I was in the same position, no worries it’s not that hard. Let’s download the most recent LTS version of Node.js, it’s 12.13.1 when I was typing this...

0

ESP32 with SSD1351

Hellodunio! Now it’s time to mess with ESP32, okay okay jokes on me I know it’s not an Arduino but works with Arduino IDE so wut? I liked this tiny device a lot and I really consider a few projects with it to rock this website’s contents a lot. So you’re guessing what is SSD1351. Well, it’s the OLED display’s driver. I found this one from the website I always...

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

Installing OpenCV with Contrib Library for Linux

This post is for you, if you don’t know how to install a library from it’s source As I mentioned in this blog post I’m about to explain how to install OpenCV library with contrib library from it’s source. It’s also a way to install all libraries from newbies. For fresh installed Linux distro like Ubuntu you need to gear up your computer first Firstly, let’s update our computer for...

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