Ruslan Polupan
Ruslan PolupanJan. 17, 2020, 8:04 a.m.

QtPlace the application window at the top and center of the main screen (monitor)

primaryScreen, QScreen

Пополняю свой склерозник....
Возникла необходимость разместить главный виджет приложения прикрепленный посредине верхней части основного экрана, т.е. основного монитора.


void MainWidget::moveToTopCenter()
{
    auto screen = QGuiApplication::primaryScreen(); //опеределянм главный экран
    QRect rect = screen->geometry(); //размер экрана
    QPoint center = rect.center(); //координаты центра …
Read
Александр Панюшкин
Александр ПанюшкинDec. 24, 2019, 2:58 p.m.

QtCreating an iOS app in QtCreator

iOS, Qt, appstore

This article is a note to myself on the topic of creating an iOS application in the QtCreator environment.

Task: to make an application for iPhone/iPad, which can be uploaded to the AppStore. At the same time, use QtCreator tools …

Read
mafulechka
mafulechkaDec. 11, 2019, 6:18 a.m.

QtQt Design Studio 1.4 Beta released

Quick, Qt, Release, QML, UI, UX

We are happy to announce the beta version of Qt Design Studio 1.4

Qt Design Studio is a User Interface (UI) design and development tool that allows designers and developers to rapidly prototype and develop complex user interfaces. Both designers …

Read
mafulechka
mafulechkaDec. 7, 2019, 8:11 a.m.

QtParsing XML with Qt: Updates for Qt 6

Qt, XML, Parsing, Qt 6

It's been a long time since articles have touched on parsing XML documents with Qt. I would like to share some fresh news about the expected changes in the next releases. But first, let's recap what Qt currently provides for …

Read
mafulechka
mafulechkaDec. 6, 2019, 4:53 a.m.

Unreal Engine 4Effective Virtual Police Training Environment in VR by V-Armed

VR, UE4, Unreal

Virtual reality has seen many implementations in the education and simulation sector, from brain surgery to military operations. VR (virtual reality) based law enforcement training is now available for police officers to quickly and safely prepare them for various situations. …

Read
Evgenii Legotckoi
Evgenii LegotckoiDec. 1, 2019, 2:22 p.m.

QtQt/C++ - Tutorial 090. How to make a learning dialogue with highlighting widgets in the program

Qt, QWidget, Stylesheet, Tutorial

I suggest studying a small application in which a dialog box will be created, thanks to which the user can be trained in the functionality of your program, step by step explaining which program widget is responsible for what.

To …

Read
Ruslan Polupan
Ruslan PolupanNov. 26, 2019, 6:10 a.m.

FirebirdUpdating table data based on a selection from another table using EXECUTE BLOCK

execute block, FireBird

Good day!
More work notes.
There was a need to update the data on the IP addresses of the database servers on the objects.
Those. Based on the result of the SELECT, perform an UPDATE on another table.


We will …

Read
Evgenii Legotckoi
Evgenii LegotckoiNov. 25, 2019, 5:53 p.m.

PyQt5PyQt5 - Tutorial 009. Using QThread with MoveToThread

moveToThread, QObject, QThread, PyQt5, Qt

Based on one of the questions on the forum, I wrote an example on using QThread in PyQt5, as well as using the moveToThread method to move the class object of the inherited QObject to another thread.

In this example, …

Read
Evgenii Legotckoi
Evgenii LegotckoiNov. 25, 2019, 3:35 p.m.

QMLQML - Tutorial 038. Using the clip property to crop child objects inside Item or Rectangle

clip, ListView, OpacityMask, QML

Quite often, the same question arises on the forum regarding the problem of displaying content embedded in any QML objects.

The most common manifestation of this problem is when ListView content scrolls beyond its scope. In any case, this is …

Read
mafulechka
mafulechkaNov. 23, 2019, 4:02 a.m.

GameDevValve To Release Source 2 Tools With Half-Life: Alyx Next March

Valve, Half-Life, VR, Tools

The last entry in the Half-Life series was a very long time ago, so there are more developer tools based on Valve's current Source 2 internal engine.

Along with today's official reveal of their exclusive VR game Half-Life: Alyx, Valve …

Read
Evgenii Legotckoi
Evgenii LegotckoiNov. 22, 2019, 2:03 a.m.

DjangoDjango - Tutorial 050. Creating Dynamic Site Settings Using SingletonModel

SingletonModel, Model, Django, singleton

Let's say you create a site with CMS based on Django, which must have some kind of dynamic site settings that will be available to the user. For example, the name of the site, some specialized information, while you take …

Read
mafulechka
mafulechkaNov. 20, 2019, 4:05 a.m.

QtEfficient QString Concatenation with Folding C ++ 17 Template Parameters

qt, QString, expression

It's common in C++ to have operator+to perform string concatenation, whether you're using the standard library (or STL) or Qt. This allows you to write things like the following snippet:

QString statement{"I'm not"};
QString number{"a number"};
QString space{" "};
QString …
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
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 9:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 3:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 2:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 6:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
k
kmssrFeb. 9, 2024, 2:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Now discuss on the forum
Evgenii Legotckoi
Evgenii LegotckoiJune 24, 2024, 10:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 2:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 10:49 a.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…
9
9AnonimOct. 25, 2024, 4:10 p.m.
Машина тьюринга // Начальное состояние 0 0, ,<,1 // Переход в состояние 1 при пустом символе 0,0,>,0 // Остаемся в состоянии 0, двигаясь вправо при встрече 0 0,1,>…

Follow us in social networks