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
AD

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

  • Result:50points,
  • Rating points-4
m

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

  • Result:80points,
  • Rating points4
m

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

  • Result:20points,
  • Rating points-10
Last comments
ИМ
Игорь МаксимовNov. 22, 2024, 10:51 p.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiNov. 1, 2024, 12:37 a.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 6:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 5:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 9:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
m
moogoNov. 22, 2024, 6:17 p.m.
Mosquito Spray System Effective Mosquito Systems for Backyard | Eco-Friendly Misting Control Device & Repellent Spray - Moogo ; Upgrade your backyard with our mosquito-repellent device! Our misters conce…
Evgenii Legotckoi
Evgenii LegotckoiJune 25, 2024, 1:11 a.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 5:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 1:49 p.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…

Follow us in social networks