Evgenii Legotckoi
Evgenii LegotckoiAug. 21, 2019, 5:45 a.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
Evgenii LegotckoiAug. 21, 2019, 3:56 a.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
Evgenii LegotckoiAug. 19, 2019, 4:41 a.m.

QtQt Design Studio 1.3 Beta released

Qt, Releases, Qt Design Studio, design

Qt Design Studio is a UI design and development tool that enables designers and developers to rapidly prototype and develop complex UIs. Both designers and developers use Qt Design Studio and this makes collaboration between the two a lot simpler …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 16, 2019, 6:26 a.m.

QtUsing QTime to display milliseconds in the current minute of the day

Qt, Qtime, Snippet

Snippet program code. Task Get the number of milliseconds in the current minute of the day. Used operator remainder of division.


#include <QCoreApplication>
#include <QTime>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QTime time = QTime::currentTime(); …
Read
mafulechka
mafulechkaAug. 15, 2019, 4:22 a.m.

AlgorithmsDijkstra&#39;s algorithm

Дерево, Алгоритм, Tree

Dijkstra's algorithm allows us to find the shortest path between any two vertices in a graph.

It differs from a minimum spanning tree in that the shortest distance between two vertices may not include all vertices in the graph.


How …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 9, 2019, 6:09 p.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
Ruslan Polupan
Ruslan PolupanAug. 9, 2019, 9:16 a.m.

Development diariesIMpos project. Part 011. Viewing the names of fuel. Export results to xlsx file.

QTableWidget, Qt, xlsx, export

View fuel names.

After processing requests for names, we form a table to display information to the user.


Indication of the process of executing queries to the petrol station databases will be used not only for viewing, but also when …

Read
Ruslan Polupan
Ruslan PolupanAug. 7, 2019, 10:41 a.m.

Development diariesIMpos project. Part 010. Obtaining names of fuel

QTableWidget, QThread

We received a list of gas stations with which we will perform further actions.
We create a slot called when clicking on the CheckBox on the GroupBox Actions.

void FuelNameDialog::on_groupBoxActions_clicked(bool checked)
{
    if(checked){
        //Очищаем список терминалов передаваемых для дальнейшей обработки …
Read
Ruslan Polupan
Ruslan PolupanAug. 2, 2019, 5:28 a.m.

Development diariesIMpos project. Part 009. Change of fuel names. Terminal selection

QTableWidget, qcheckbox, QDialog

Dialog for changing fuel names.

Dialog appearance.

The dialog was completely created in Qt Designer.


In the main menu, add the Utilities section with the item Fuel names , and add the corresponding button to the toolbar.
Dialog call slot …

Read
mafulechka
mafulechkaAug. 2, 2019, 4:28 a.m.

AlgorithmsDynamic programming

Дерево, Tree, Алгоритм

Dynamic programming is a computer programming technique that helps to efficiently solve a class of problems that have overlapping subproblems and optimal substructure properties.

Such problems include repeatedly calculating the value of the same subproblems to find the optimal solution. …

Read
IscanderChe
IscanderCheAug. 2, 2019, 2:37 a.m.

Development diariesSimple Tracker project. Part 8: the formation of the distribution and the results

Iscander Che, Simple Tracker, C++, Qt

In conclusion, we will prepare the files obtained during compilation for distribution. It doesn't matter if the project is local. It is more convenient to have an installer handy, just in case. With it, you can, for example, automatically clean …

Read
mafulechka
mafulechkaAug. 1, 2019, 4:07 a.m.

QtUpdating CMake project support in Qt Creator

Qt, cmake, pro, Creator

Over the past few weeks, developers have been working on improving CMake support in Qt Creator, Qt Company would like to highlight some of the new features.


Fileapi support

The CMake project has announced a new IDE integration mechanism version …

Read
d
  • dsfs
  • April 26, 2024, 4:56 a.m.

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

  • Result:80points,
  • Rating points4
d
  • dsfs
  • April 26, 2024, 4:45 a.m.

C++ - Test 002. Constants

  • Result:50points,
  • Rating points-4
d
  • dsfs
  • April 26, 2024, 4:35 a.m.

C++ - Test 001. The first program and data types

  • Result:73points,
  • Rating points1
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
BlinCT
BlinCTMay 5, 2024, 5:46 a.m.
Написать свой GraphsView Всем привет. В Qt есть давольно старый обьект дял работы с графиками ChartsView и есть в 6.7 новый но очень сырой и со слабым функционалом GraphsView. По этой причине я хочу написать х…
BlinCT
BlinCTMay 5, 2024, 5:44 a.m.
добавить qlineseries в функции Давно я не работал с виджетами и с формами, на мой взгляд уже пережитов, и в управлении не очень удобное это все. Н оя у вас не увидел в коде где вы QCharts растягиваете на область парента.…
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