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
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, 11:51 a.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 2:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 8:19 a.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 7:51 a.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 11:02 a.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, 7:17 a.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 24, 2024, 3:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 6:04 a.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 3:49 a.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…

Follow us in social networks