Реклама

(Русский) Hello World на PyQt5

Sorry, this entry is only available in Russian. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language. Python — это высокоуровневый язык программирования общего назначения, ориентированный на повышение производительности разработчика и читаемости кода, как говорит нам Википедия. А также активно используется для…

QSignalMapper VS lambda functions

QSignalMapper is a wonderful class to organize the work of the signals and slots dynamically created objects. For example, the dynamically created buttons or objects in QStackedWidget. This was particularly true in older versions of the software, that is, and relied on Qt 4.8, which signals and slots system was based on the use of…
Advertisement

Reading data from a CSV file, and their representation via QStandardItemModel

CSV data format (Comma-Separated Values) format is the simplest representation of tabular data. This format is supported by Excel and many other office suites. For example, I often encounter this format when uploading statistics do the site of the panel webmasters Google Search Console. In this format, the table represents the data sequence, separated by…

(Русский) Intents с Qt для Android, часть 1

Sorry, this entry is only available in Russian. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language. “Intent” является главной возможностью для межпроцессорного взаимодействия в Android. В основном, Intent является объектом, который обрабатывается операционной системой и передаётся затем одному…

SetWindowsHookEx – Logging mouse events via WinAPI

Functional WinAPI allows by using hooks to monitor system events, such as mouse movement and clicks. This functionality based on callback functions, so if you want to use the Qt system of signaling and slots, you will need to pass one of the methods as a callback to a function for registering callback on a Windows…

Logging Qt application events to a text file

All developers uses macro qDebug(), when debugging an application written in the Qt, but there are also macros qInfo(), qWarning(), qCritical() and qFatal() (which, as of this writing has errors and did not work). With these events, you can divide errors in the application on the level of significance and use filters. To redirect error…

Dynamic translation of multilanguage application on QML

Once we have learn how to make the translation of the application interface at Qt/C++, it is time to research possibilities of dynamic translation application interface which is written in QML. In developing the QML to have a couple of moments that need to be taken into account, as opposed to the standard application on QWidgets,…

QTranslator – dynamic translation of multilingual application to Qt

Sooner or later, the developer of Qt applications meets the need multilanguage support of  his application. Then you can to use QTranslator class and Qt Linguist for creating of translations. QTranslator object class is used to load translation from a special file with the extension .qm, which is a hexadecimal file of translations. This file is compiled from…

QThread – работа с потоками с помощью moveToThread

В предыдущей статье мы только коснулись работы с потоками, причём в том варианте, который служит больше для кастомизации самого потока, хотя и может быть использован для совершения посторонней работы, никак не связанной непосредственно с потоками. То есть вариант с наследованием от QThread и переопределение метода run().  Теперь же мы создадим класс ExampleObject, объекты которого будут…