Evgenii Legotckoi
Evgenii LegotckoiJune 15, 2017, 2:58 a.m.

QtQt/C++ - Tutorial 067. Using QMultiMap for a dictionary of synonyms

Qt, QMultiMap, QTableView, QStandardItemModel

QMultiMap is a class inherited from QMap, which allows you to store multiple values for a single key. That is, the key can be repeated. This class can be used, for example, to represent a dictionary of synonyms.

Let's write …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 9, 2017, 6:37 a.m.

C++C++ - Tutorial 004. Tests and loops

C++, while, for, do, break, continue, if, else

C++ provides a standard set of operators for selecting a selection and cycles.

The keywords related to the construction of branching conditions for the code are:

  • if
  • else
  • switch
  • case
  • break
  • default

The key words relating to the construction of …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 6, 2017, 12:48 p.m.

QtQt/C++ - Tutorial 066. Uploading files to an FTP server

Qt, QNetworkAccessManager, FTP

To work with the network in Qt 5 , the Network module is used, and for data transmission over the network, you can actively use the QNetworkAccessManager class if you do not create your own protocol for data transfer. But …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 5, 2017, 3:33 a.m.

C++C++ - Tutorial 003. Constants

C++, const, constexpr

C =++ supports two notations of immutability:

  1. const - which implies that the value will not change. First of all, this is used to specify interfaces, for data that is passed to functions and methods so that they are not …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 4, 2017, 4:52 a.m.

PostgreSQLCorrecting the client encoding of the PostgreSQL database from LATIN1 to UTF8

PostgreSQL, Django, LATIN1, UTF8

On the site there was one bug that manifested itself when trying to attach to files messages whose names were in Cyrillic. In this case, the site issued error 503. This occurred despite the fact that the database was encoded …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 12, 2017, 1:06 p.m.

C++C++ - Tutorial 002. Types, Variables and Arithmetic

C++, int, char, double, auto, nullptr

Each variable or expression has its own data type, for example, an declaration

int some_variable;

Indicates that the variable some_variable has an integer type int .

The declaration allows you to enter a variable in the program. This variable will …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 10, 2017, 12:38 p.m.

DjangoDjango - Tutorial 024. Polling with AJAX

AJAX, Django, Polling

Frequent surveys with AJAX allow you to establish a permanent connection between the browser and the server in order to update any data, for example, whether there are new notifications on the site for the user. For example, I organized …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 7, 2017, 4:51 a.m.

C++C++ - Tutorial 001. Hello World

C++, Hello World

The minimum program in C ++ is

int main() { } // the minimal C++ program

In this program, the declaration of the main function is presented, which takes no arguments. The curly brackets reflect grouping in C++ and in …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 4, 2017, 11:33 a.m.

QtQt/C++ - Lesson 065. The correspondence of HTTP errors to server response errors in QNetworkAccessManager

QNetworkReply, QNetworkError, QNetworkAccessManager

In one of the lessons, I worked with QNetworkAccessManager to get the content of the page from the site via the http protocol. There was made a check for errors, but no explanation was given as to what errors might …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 3, 2017, 12:23 p.m.

QtQt/C++ - Lesson 064. How to hide items from the QComboBox drop-down list

Qt, QComboBox, QListView

In some cases, it is required to hide some items from the QComboBox drop-down list. For example, the user is given the opportunity to select one of several options in QComboBox, but by default the invalid option should be displayed, …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 30, 2017, 12:17 p.m.

DjangoDjango - Tutorial 023. Like Dislike system using GenericForeignKey

Like, Django, GenericRelation, Dislike, GenericForeignKey

In the article on creating a system of bookmarks on Django, an example was considered with the use of an abstract model for several types of bookmarks, namely for articles and comments on articles. Attention was also drawn to the …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 25, 2017, 12:23 p.m.

QtQt/C++ - Tutorial 063. Adding windows inside the main application window using QMdiArea

QMdiArea, Qt, QWidget

Many applications, like a photoshop, can open projects (images, texts, etc.) inside windows that open inside the main application window. Qt provides a similar function as QMdiArea . In an object of this class, you can place class objects inherited …

Read
Дмитрий

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:60points,
  • Rating points-1
Дмитрий

C++ - Тест 003. Условия и циклы

  • Result:92points,
  • Rating points8
d
  • dsfs
  • April 26, 2024, 4:56 a.m.

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
Last comments
k
kmssrFeb. 8, 2024, 6:43 p.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
EVA
EVADec. 25, 2023, 10:30 a.m.
Boost - static linking in CMake project under Windows Ошибка LNK1104 часто возникает, когда компоновщик не может найти или открыть файл библиотеки. В вашем случае, это файл libboost_locale-vc142-mt-gd-x64-1_74.lib из библиотеки Boost для C+…
J
JonnyJoDec. 25, 2023, 8:38 a.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
G
GvozdikDec. 18, 2023, 9:01 p.m.
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
G
George13May 7, 2024, 12:27 a.m.
добавить qlineseries в функции в функции: "GPlotter::addSeries(QString title, QVector &arr)" я вызываю метод setChart(...), я в конструктор передал адрес на QChartView элемент
BlinCT
BlinCTMay 5, 2024, 5:46 a.m.
Написать свой GraphsView Всем привет. В Qt есть давольно старый обьект дял работы с графиками ChartsView и есть в 6.7 новый но очень сырой и со слабым функционалом GraphsView. По этой причине я хочу написать х…
PS
Peter SonMay 3, 2024, 5:57 p.m.
Best Indian Food Restaurant In Cincinnati OH Ready to embark on a gastronomic journey like no other? Join us at App india restaurant and discover why we're renowned as the Best Indian Food Restaurant In Cincinnati OH . Whether y…
Evgenii Legotckoi
Evgenii LegotckoiMay 2, 2024, 2:07 p.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Добрый день. По моему мнению - да, но то, что будет касаться вызовов к функционалу Андроида, может создать огромные трудности.
IscanderChe
IscanderCheApril 30, 2024, 4:22 a.m.
Во Flask рендер шаблона не передаётся в браузер Доброе утро! Имеется вот такой шаблон: <!doctype html><html> <head> <title>{{ title }}</title> <link rel="stylesheet" href="{{ url_…

Follow us in social networks