PyQt5 → PyQt5 - Tutorial 009. Using QThread with MoveToThread
moveToThread, QObject, QThread, PyQt5, Qt
Based on one of the questions on the forum, I wrote an example on using QThread in PyQt5, as well as using the moveToThread method to move the class object of the inherited QObject to another thread.
In this example, …
Development diaries → IMpos project. Part 010. Obtaining names of fuel
We received a list of gas stations with which we will perform further actions.
We create a slot called when clicking on the CheckBox on the GroupBox Actions.
- void FuelNameDialog::on_groupBoxActions_clicked(bool checked)
- {
- if(checked){
- //Очищаем список терминалов передаваемых для дальнейшей обработки …
Qt → Qt - Selecting data from a QSqlQuery database in a QThread stream and creating a QAbstractTableModel model based on it
QThread, Qt, QAbstractTableModel, QSqlQuery
There was a need to obtain a large amount of data from the database for the subsequent work of the user with them (Reference book of goods in a particular store).
For the code do not kick much. Programming for …
Qt → Blocking serial port. QSerialPort + QThread.
I had the task of writing software for controlling the radiator of the X-ray. Namely: realize the protocol of data transfer between the PC and the radiator of the X-ray and create the user-defined functions "Set parameters", "Enable X-ray", "Switch …
Qt → Qt/C++ - Lesson 048. QThread — How to work with threads using moveToThread
QObject, потоки, moveToThread, Qt, QThread
In a previous article we are only a little touch to working with threads , and in the version that is more for the customization of thread, although it can be used to perform outside work not directly related to …
Qt → Qt/C++ - Lesson 047. QThread – How to make threads in Qt
One of the most common ways to create a separate parallel threads in an application to Qt , and perform useful tasks in them is the inheritance of QThread class and override the method run() , which will be carried …
- Last comments
- AKApril 1, 2025, 11:41 a.m.Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
- VPMarch 9, 2025, 4:14 p.m.Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
- ИМNov. 22, 2024, 9:51 p.m.Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
- Now discuss on the forum
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
- Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.