Django → Django - 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 …
ReadQt → Qt/C++ - Lesson 062. Comparator for sorting QList
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. …
ReadPyQt5 → PyQt5 - 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 …
ReadQt → Qt Linux - Lesson 003. Checking the battery level of the laptop using 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 …
ReadQt → Qt/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 …
ReadQt → Qt/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 …
ReadDjango → Django - Tutorial 021. Model Inheritance, Abstract Model
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 …
ReadDjango → Django - 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 …
ReadPyQt5 → PyQt5 - Lesson 006. Work with 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 …
ReadPyQt5 → PyQt5 - 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 …
ReadQML → QML - 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 . …
ReadQt → QPainter 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- Akiv Doros
- Nov. 11, 2024, 8:58 p.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:50points,
- Rating points-4
- molni99
- Oct. 26, 2024, 7:37 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:80points,
- Rating points4
- molni99
- Oct. 26, 2024, 7:29 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:20points,
- Rating points-10