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 …
ReadAndroid → Android. Java vs Qt QML - Tutorial 004. Creating a menu in the Action Bar from the submenu
So, we continue to implement the same functionality in applications for Android from two fundamentally different worlds. Namely on traditional Java and less widespread Qt QML C ++.
This time we implement the menu in ActionBar Activation. I note that …
ReadAndroid → Android. Java vs Qt QML - Tutorial 003. Console messages and Toast pop-up messages
Android, Toast, QML, log, Qt, JAVA, console
In the previous article , two buttons were created, which were responsible for changing the text in the text field. And now let's consider the option when we need to output information to the console about the button presses, or …
Read- Akiv Doros
- Nov. 12, 2024, 1:58 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:50points,
- Rating points-4
- molni99
- Oct. 26, 2024, 11:37 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:80points,
- Rating points4
- molni99
- Oct. 26, 2024, 11:29 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:20points,
- Rating points-10