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
d
  • dsfs
  • April 26, 2024, 4:56 p.m.

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
d
  • dsfs
  • April 26, 2024, 4:45 p.m.

C++ - Test 002. Constants

  • Result:50points,
  • Rating points-4
d
  • dsfs
  • April 26, 2024, 4:35 p.m.

C++ - Test 001. The first program and data types

  • Result:73points,
  • Rating points1
Last comments
k
kmssrFeb. 9, 2024, 7:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
EVA
EVADec. 25, 2023, 11:30 p.m.
Boost - static linking in CMake project under Windows Ошибка LNK1104 часто возникает, когда компоновщик не может найти или открыть файл библиотеки. В вашем случае, это файл libboost_locale-vc142-mt-gd-x64-1_74.lib из библиотеки Boost для C+…
J
JonnyJoDec. 25, 2023, 9:38 p.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
G
GvozdikDec. 19, 2023, 10:01 a.m.
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
PS
Peter SonMay 4, 2024, 5:57 a.m.
Best Indian Food Restaurant In Cincinnati OH Ready to embark on a gastronomic journey like no other? Join us at App india restaurant and discover why we're renowned as the Best Indian Food Restaurant In Cincinnati OH . Whether y…
Evgenii Legotckoi
Evgenii LegotckoiMay 3, 2024, 2:07 a.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Добрый день. По моему мнению - да, но то, что будет касаться вызовов к функционалу Андроида, может создать огромные трудности.
IscanderChe
IscanderCheApril 30, 2024, 4:22 p.m.
Во Flask рендер шаблона не передаётся в браузер Доброе утро! Имеется вот такой шаблон: <!doctype html><html> <head> <title>{{ title }}</title> <link rel="stylesheet" href="{{ url_…
G
GarApril 22, 2024, 5:46 p.m.
Clipboard Как скопировать окно целиком в clipb?
Павел Дорофеев
Павел ДорофеевApril 14, 2024, 2:35 p.m.
QTableWidget с 2 заголовками Вот тут есть кастомный QTableView с многорядностью проект поддерживается, обращайтесь

Follow us in social networks