Павел Дорофеев
Oct. 29, 2023, 12:46 a.m.

Projects based on QtHow to write your own QTableView

Qt, C++, QTableView

The topic is interesting and there is already a ready-made open project. It's still a beta version.

Short video on YouTube

github.com

In general, QpTableView is the name of our class. Allows you to display columns of the data model …

Read
Evgenii Legotckoi
June 13, 2022, 3:15 p.m.

C++Leet Code Solutions - 003 - Longest Substring Without Repeating Characters

cpp, LeetCode, C++, C++17, string

Solution "Longest Substring Without Repeating Characters" on Leet Code


  1. class Solution {
  2. public:
  3. int lengthOfLongestSubstring(string s) {
  4. string candidate_str = "";
  5. string checking_str = "";
  6. size_t position = std::string::npos;
  7. for (auto& ch : s)
  8. {
  9. position = checking_str.find(ch);
  10. if (position
Read
Evgenii Legotckoi
June 13, 2022, 2:13 p.m.

C++Leed Code Solutions - 002 - Add Two Numbers

LeetCode, cpp, C++

Solution "Add Two Numbers" on Leet Code


  1. /**
  2. * Definition for singly-linked list.
  3. * struct ListNode {
  4. * int val;
  5. * ListNode *next;
  6. * ListNode() : val(0), next(nullptr) {}
  7. * ListNode(int x) : val(x), next(nullptr) {}
  8. * ListNode(int x, ListNode …
Read
Evgenii Legotckoi
June 13, 2022, 1:58 p.m.

C++Leet Code Solutions - 001 - Two Sum

cpp, LeetCode, C++

Two Sum solution on Leet Code


The simple solution

  1. class Solution {
  2. public:
  3. vector<int> twoSum(vector<int>& nums, int target) {
  4. for (int i = 0; i < nums.size(); ++i)
  5. {
  6. for (int j = i + 1; j < nums.size(); ++j)
Read
IscanderChe
June 15, 2020, 4:51 p.m.

C++A simple text editor in Ultimate ++

C++, U++, Ultimate++, UPP

I learned about Ultimate++ ( https://www.ultimatepp.org/ ) quite by accident when I read in an IT RSS feed about the next update of this framework. Well, I thought, since my pen projects are on hold, why not try something new. …

Read
ДК
April 13, 2020, 6:38 p.m.

Career and business in IT fieldPath to Programmers (C ++)

стать программистом с нуля, C++, Qt, карьера в IT

Hello. I am with you. I liked boxing and long-distance running, and I only thought about sports, but I trained as a sailor. I worked in aviation and became a C++ programmer at 29. I'll tell you how it happened. …

Read
IscanderChe
Aug. 29, 2019, 3:02 p.m.

Development diariesDBComponents project. Part 1. Requirements for the project and database

DBComponents, Qt, Iscander Che, C++

Project requirements

The project implements a database of IT components. Three categories are planned so far: monitors, medical printers, system units. The functionality of the database also includes the ability to create new categories.

The project should consist of two …

Read
Evgenii Legotckoi
Aug. 21, 2019, 3:45 p.m.

C++C++14 - lambda function with cached return value

C++14, lambda, auto, cache, C++

Suppose we wrote a function that calculates some value or uses a function to calculate this value, while the function_ which calculates the value is quite expensive to calculate and works for a long time. In this case, we call …

Read
Evgenii Legotckoi
Aug. 21, 2019, 1:56 p.m.

C++C++14 - unnamed structure as auto value returned by function

lambda, C++, C++14, auto

Let's look at an interesting construction from the C++14 standard, which allows you to return the structure used in one place of the code, but you need to return an object with named fields.

Such a construction can serve as …

Read
Evgenii Legotckoi
Aug. 10, 2019, 4:09 a.m.

CMakeUsing variables declared in CMakeLists.txt inside C ++ files

cmake, C++, cpp

I propose to consider the option of using variables declared in the CMakeLists.txt file in C ++ code.

To begin with, what is it for? For example, you want to specify the version of the program and some other auxiliary …

Read
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup