Evgenii Legotckoi
Evgenii LegotckoiApril 8, 2017, 7:52 a.m.

DjangoDjango - Tutorial 022. Adding a bookmark system (favorites) to the site

bookmark, AJAX, favorite, Django, jQuery

The site has the ability to mark articles, comments, topics and answers on the forum as favorites. However, marking as favorites does not provide a reload of the page, because for these actions the mechanism of AJAX-requests is used.

In …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 7, 2017, 3:22 a.m.

QtQt/C++ - Lesson 062. Comparator for sorting QList

QList, sort, сортировка

When working with simple types, you can use standard sorting tools. If you want to sort complex objects, by a set of parameters, then you need to write a special comparator, which will perform a comparison on the required parameters. …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 2, 2017, 2:22 p.m.

PyQt5PyQt5 - Lesson 007. Works with QML QtQuick (Signals and slots)

PyQt5, QML, QtQuick, Signal, Slot

And now we will go deeper into the work with Qt using PyQt5, taking advantage of modern Qt features. By such possibilities I mean QtQuick and QML. PyQt5 allows you to use Qt classes that can process QML code, and …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 1, 2017, 12:16 p.m.

QtQt Linux - Lesson 003. Checking the battery level of the laptop using libacpi

Qt, Battery, libacpi

On the forum we to talk about checking the battery level of the laptop under Linux using the Qt library. In fact, Qt does not currently provide a class that would allow you to check the battery charge. But such …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 30, 2017, 1:47 p.m.

QtQt/C++ - Lesson 061. Adding images to the application using the Drag And Drop method from the file manager

QDropEvent, QStyledDelegate, QListView, QStandardItemModel

Let's write a small application that will allow Drag and Drop to drag and drop images from the file manager into the application itself. In this application, there will be an image preview area and a list of all the …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 27, 2017, 1:20 p.m.

QtQt/C++ - Lesson 060. Configuring the appearance of the application in runtime

QStyle, QStyleFactory, Fusion, QPalette

Suppose there is a task to change the appearance of the application written on QWidget. To change the style of the application application, you can use both the QPalette classes, and install the style through QStyleSheet for specific elements, and …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 26, 2017, 1:45 a.m.

DjangoDjango - Tutorial 021. Model Inheritance, Abstract Model

model, Django, наследование

After refactoring on the site, four main entities were identified, in which common properties were identified, namely:

  • Article - articles
  • Comment - comments
  • ForumTopic - Forum themes (questions)
  • ForumPost - Answers to forum topics

Of course, and so it was …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 15, 2017, 2:12 p.m.

DjangoDjango - Tutorial 020. Adding articles pagination to the site using ListView and django-bootstrap3

Pagination, Django, django-bootstrap3, ListView

In one of the previous articles , the option of introducing a page with articles pagination was shown, which can be the main page of the site, for example. In this case, django-bootstrap3 was used.

But if the page does …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 15, 2017, 1:10 p.m.

PyQt5PyQt5 - Lesson 006. Work with QTableWidget

PyQt5, Python, QTableWidget

For initial acquaintance with QTableWidget in PyQt5 we will create a table with three columns and one row. When you hover over the table headings, a pop-up message will be displayed. The text in the headers will be aligned to …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 15, 2017, 12:12 p.m.

PyQt5PyQt5 - Lesson 005. Autocompletion for an input field using QCompleter

PyQt5, QCompleter, Python, QLineEdit

The Qt library has a QCompleter class, which allows you to offer autocompletion to the input word in the input fields. This class is also supported by the PyQt5 library.

In the minimum, the application of this class might look …

Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 3, 2017, 11:55 a.m.

QMLQML - Lesson 027. Adding QML in project based on QWidget

QQuickWidget, QML, C++, QWidget

When developing your application to Qt may happen a situation where required in an application written in QWidgets implement functional written in QML. To solve such a problem can be used QQuickWidget class that is used to render QML . …

Read
Evgenii Legotckoi
Evgenii LegotckoiJan. 27, 2017, 7:53 a.m.

QtQPainter OpenGL Core Profile Context Support

Qt 5.9, qtbase, OpenGL, QOpenGLWindow, QOpenGLWidget

As many people know, QPainter has a multi-backend architecture and has two main rendering implementations under the hood of Qt 5: The raster rendering engine and an OpenGL2 engine that targets OpenGL ES 2.0.

GL Paint Engine

While the bitmap …

Read
Дмитрий

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

  • Result:60points,
  • Rating points-1
Дмитрий

C++ - Тест 003. Условия и циклы

  • Result:92points,
  • Rating points8
d
  • dsfs
  • April 26, 2024, 4:56 a.m.

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

  • Result:80points,
  • Rating points4
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
G
George13May 7, 2024, 12:27 a.m.
добавить qlineseries в функции в функции: "GPlotter::addSeries(QString title, QVector &arr)" я вызываю метод setChart(...), я в конструктор передал адрес на QChartView элемент
BlinCT
BlinCTMay 5, 2024, 5:46 a.m.
Написать свой GraphsView Всем привет. В Qt есть давольно старый обьект дял работы с графиками ChartsView и есть в 6.7 новый но очень сырой и со слабым функционалом GraphsView. По этой причине я хочу написать х…
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