Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2018, 10:07 a.m.

DjangoDjango - Snippet 001. get_object_or_none

Django, Snippet

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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2018, 2:26 a.m.

QtQt/C++ - Tutorial 079. foreach vs range-based for in C++11?

Qt, foreach, for

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 …

Read
Рина Сергеева
Рина СергееваMay 9, 2018, 2:49 a.m.

JavaHow to make white spaces in the GridBagLayout manager

Layout, GridBagLayout

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 …

Read
Рина Сергеева
Рина СергееваMay 3, 2018, 3:04 a.m.

JavaHandling keyboard events with KeyListener in TextField

KeyListener, 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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 27, 2018, 9:23 a.m.

PythonPython 3 - Tutorial 004. Variable Types

Python 3, variables, var

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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 26, 2018, 6:39 a.m.

QtQt/C++ Tutorial 078. Do not mix the old syntax of signals and slots on SIGNAL SLOT macros with new syntax on pointers

signal, Slot, Qt

We all know that in Qt there are two syntaxes of signals and slots:

But also, as it is not necessary to interfere with beer with vodka, with the same …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 23, 2018, 5:07 a.m.

QtQt/C++ - Tutorial 077. QComboBox - ignoring hidden items in the drop-down list when scrolling

QComboBox, Qt, eventFilter

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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 21, 2018, 4:18 p.m.

QtQt/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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 6, 2018, 2:17 a.m.

AndroidAndroid. Java vs Qt QML - Tutorial 005. Create a context menu

Qt, Menu, JAVA, Android, QML

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 …
Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 5, 2018, 3:13 a.m.

AndroidAndroid. Java vs Qt QML - Tutorial 000. Enable Material Design

material design, Android

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
Evgenii Legotckoi
Evgenii LegotckoiMarch 2, 2018, 2:53 a.m.

AndroidAndroid. Java vs Qt QML - Tutorial 004. Creating a menu in the Action Bar from the submenu

Qt, JAVA, Android, QML

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 …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 1, 2018, 2:58 a.m.

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

Follow us in social networks