Django → Django - Snippet 001. get_object_or_none
In Django shortcuts there is a function get_object_or_404 , but there is no function get_object_or_none , which can be useful in the case when we do not want to cause error 404 immediately, but we need to perform some actions …
ReadQt → Qt/C++ - Tutorial 079. foreach vs range-based for in C++11?
Qt has its own keyword foreach to iterate through the elements of the containers. This keyword was introduced before the C++11 standard and is a macro. At this point in the C++11 standard, there are range-based for loops that perform …
ReadJava → How to make white spaces in the GridBagLayout manager
In my program, I decided to arrange GUI elements using the GridBagLayout manager. This is the most versatile layout manager. It places elements on a tabular basis, but each cell can have any size, width, height, etc.
You can see …
ReadJava → Handling keyboard events with KeyListener in TextField
Sometimes there is a need to perform certain actions by keys pressing in the TextField . Next, let's see how you can handle events that come from the keyboard.
First we create JTextField
JTextField textField = new JTextField();
place it …
ReadPython → Python 3 - Tutorial 004. Variable Types
Variables are nothing but reserved memory locations to store values. It means that when you create a variable, you reserve some space in the memory.
Based on the data type of a variable, the interpreter allocates memory and decides what …
ReadQt → Qt/C++ Tutorial 078. Do not mix the old syntax of signals and slots on SIGNAL SLOT macros with new syntax on pointers
We all know that in Qt there are two syntaxes of signals and slots:
- Old Syntax on SIGNAL SLOT Macros
- New syntax on pointers
But also, as it is not necessary to interfere with beer with vodka, with the same …
ReadQt → Qt/C++ - Tutorial 077. QComboBox - ignoring hidden items in the drop-down list when scrolling
In one of the previous articles, it was shown how to hide some items in the QComboBox drop-down list so that the user could not select them. However, I did not pay attention to the fact that if the user …
ReadQt → Qt/C++ - Tutorial 076. Visualizing Mathematical Formulas on Qt
Formula, QPainter, Qt, QRegularExpression
Recently, a rather interesting question appeared on the forum, about how you can visualize formulas in Qt. Unfortunately, I did not have the opportunity to deal with the site and the forum for a long time, but decided that presenting …
ReadAndroid → Android. Java vs Qt QML - Tutorial 005. Create a context menu
After we figured out how to create a menu in the Action Bar, add a context menu to any objects.
In this lesson, we'll add two text fields that will have a context menu.
- The context menu of the first …
Android → Android. Java vs Qt QML - Tutorial 000. Enable Material Design
When you develop both Java and Qt QML, you need to enable Material Design.
Material Design on Java
In the case of Java, it's enough to include the theme design in the styles.xml file and set the required color gamut …
Read- Unknown akadamn
- Jan. 24, 2025, 7:14 a.m.
Qt - Test 001. Signals and slots
- Result:84points,
- Rating points4
- Unknown akadamn
- Jan. 24, 2025, 6:22 a.m.
Qt - Test 001. Signals and slots
- Result:42points,
- Rating points-8