Projects based on Qt → How 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.
In general, QpTableView is the name of our class. Allows you to display columns of the data model …
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
- class Solution {
- public:
- int lengthOfLongestSubstring(string s) {
- string candidate_str = "";
- string checking_str = "";
- size_t position = std::string::npos;
- for (auto& ch : s)
- {
- position = checking_str.find(ch);
- if (position …
C++ → Leed Code Solutions - 002 - Add Two Numbers
Solution "Add Two Numbers" on Leet Code
- /**
- * Definition for singly-linked list.
- * struct ListNode {
- * int val;
- * ListNode *next;
- * ListNode() : val(0), next(nullptr) {}
- * ListNode(int x) : val(x), next(nullptr) {}
- * ListNode(int x, ListNode …
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. …
Career and business in IT field → Path 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. …
Development diaries → DBComponents 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 …
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 …
C++ → C++14 - unnamed structure as auto value returned by function
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 …
CMake → Using variables declared in CMakeLists.txt inside C ++ files
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 …
- 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
- МАApril 1, 2025, 4:21 p.m.0ff763fe-4e50-455d-a3a6-5699c243b1a5_17_44_22_1.xml
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…