- May 28 Thu 2020 17:08
-
Multiple Object Tracking Benchmark
- May 26 Tue 2020 00:07
-
QThread tutorial part 2

This time we are going to create a new Object intead of using subclass of QThread,and all its job is transfer to a QThread instance by calling moveToThread method.You can find out details on youtube.
Let’s create a new project of window application and add new class, in which it accumaltes from 1 to 999.
- May 19 Tue 2020 14:12
-
QThread tutorial

A good example for writing QThread with a GUI.
Here is another similar example:QT5 TUTORIAL QTHREADS - GUI THREAD - 2020
- May 15 Fri 2020 11:46
-
Qt Mouse Event on QLabel
- May 15 Fri 2020 10:36
-
How to find out if the rectangle inside another rectangle?

cv::Mat img(cv::Size(800, 800), CV_8UC3);
// big region of interest (ROI)Rect roi(100, 100, 400, 400);
rectangle(img, roi, Scalar(255, 0, 0), 1);
// some rectanglesvector<Rect> lpROIs;
lpROIs.push_back(Rect(30, 50, 100, 100));
lpROIs.push_back(Rect(420, 250, 100, 100));
lpROIs.push_back(Rect(150, 140, 100, 100));
lpROIs.push_back(Rect(300, 100, 100, 100));
lpROIs.push_back(Rect(250, 250, 100, 100));
lpROIs.push_back(Rect(300, 450, 100, 100));
// check out if the rectangle inside the ROIfor(int i=0; i<lpROIs.size(); i++)
{ // inside the ROI if( (roi&lpROIs[i])==lpROIs[i] )rectangle(img, lpROIs[i], Scalar(0,0,255), -1);
elserectangle(img, lpROIs[i], Scalar(0,255,0), 1);
}
imshow("img", img);waitKey();
- May 12 Tue 2020 11:03
-
Building a computer vision software with Qt and OpenCV
A good example that shows image processing by using OpenCV with Qt IDE.
- Apr 24 Fri 2020 10:22
-
How to register OpenCV Mat data type in the communication between Qt signal and slot

First, set up OpenCV building environments
INCLUDEPATH += C:\OpenCV\OpenCV4.2.0DNN\include
LIBS += -LC:\OpenCV\OpenCV4.2.0DNN\lib \
-lopencv_world420
- Apr 23 Thu 2020 11:55
-
How to register OpenCV Mat data type in the communication between Qt signal and slot

First, set up OpenCV building environments
INCLUDEPATH += C:\OpenCV\OpenCV4.2.0DNN\include
LIBS += -LC:\OpenCV\OpenCV4.2.0DNN\lib \
-lopencv_world420
- Apr 22 Wed 2020 16:40
-
How to hide and remove the boarder of a QTabWidget
You can get all tabBars contained in a tabWidget by using findChild, which is a method of QTabWidget.After that, you can hide them at once.
QTabBar *tabBar = ui->tabWidget->findChild<QTabBar *>();
tabBar->hide();
- Apr 22 Wed 2020 15:48
-
How to run a function in a separate thread in Qt Window App

mainwindow.h
#ifndef MAINWINDOW_H#define MAINWINDOW_H#include <QMainWindow>#include <QtConcurrent/QtConcurrentRun>QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{Q_OBJECT
public:MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots: void on_pushButton_start_clicked(); void on_pushButton_stop_clicked();private:Ui::MainWindow *ui;
int counter; bool running;private: void addCounter();};
#endif // MAINWINDOW_H
- Apr 22 Wed 2020 14:50
-
How to Load a image in a Qt Window Application
- Apr 21 Tue 2020 21:44
-
How to add QTabWidget dynamically



