Evgenii Legotckoi
Evgenii LegotckoiFeb. 28, 2016, 10:45 a.m.

QtQGlobalShortcut - Global hotkeys

linux, Qt, QGlobalShortcut, HotKey, Windows

In the process of studying the issues with global hotkeys for Linux and Windows, I wrote my library for quick registration hotkeys. The resulting library is called QGlobalShortcut and is available at GitHub under license LGPLv2. The library supports the …

Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 28, 2016, 10:17 a.m.

QtQt Linux - Lesson 002. Global HotKey in Linux

Qt, Ubuntu, HotKey, linux, XLib, XCB

Work with the global keyboard hot keys in Windows is a trivial task than Linux, since this has WinAPI prepared methods that do not require a large amount of code. And each hotkey is set in line ID, in which …

Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 24, 2016, 1:02 p.m.

XlibXKeysymToKeycode

linux, unix, X11, XKeysymToKeycode, Xorg

Name and similar functions

XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase - convert keysyms

Syntax

KeySym XStringToKeysym(char *string);

char *XKeysymToString(KeySym keysym);
KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index);
KeyCode XKeysymToKeycode(Display *display, KeySym keysym);
void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);

Arguments

display …
Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 24, 2016, 12:56 p.m.

XlibXGrabKey

HotKey, linux, X11, XGrabKey

Syntax

XGrabKey(display, keycode, modifiers, grab_window, owner_events, pointer_mode, keyboard_mode)
      Display *    display;
      int          keycode;
      unsigned int modifiers;
      Window       grab_window;
      Bool         owner_events;
      int          pointer_mode, keyboard_mode;

Arguments

display         // Specifies the connection to the X server.
keycode         // Specifies the KeyCode or AnyKey. …
Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 23, 2016, 1 p.m.

XlibXUngrabKey

HotKey, linux, X11, XUngrabKey

Syntax

XUngrabKey(display, keycode, modifiers, grab_window)
      Display *     display;
      int           keycode;
      unsigned int  modifiers;
      Window        grab_window;

Arguments

display       // Specifies the connection to the X server.
keycode       // Specifies the KeyCode or AnyKey.
modifiers     // Specifies the set of keymasks or …
Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 15, 2016, 10:07 a.m.

QtQt Linux - Lesson 001. Autorun Qt application under Linux

Linux, Qt, автозапуск, autorun, Ubuntu

Let's talk about how you can add functionality in Qt application to configure startup of the application. For example, we have a settings window, and we want to make the ability to customize the dialog box Autorun application.

In contrast …

Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 2, 2016, 11:10 a.m.

QMLQML - Lesson 023. The hunt for bugs in the transmission pointer to QObject in QML

bug, Qt, pointer, JavaScriptOwnership, QML, указатель

One of the most vile and little predictable bugs are those that arise in an uncertain time. Among these include a bug that appears when the pointer is transmitted to the QObject in QML layer. The problem is that if …

Read
Evgenii Legotckoi
Evgenii LegotckoiFeb. 2, 2016, 10:37 a.m.

QtFifteen on Qt

Qt, Пятнашки, Fifteen

During the maintenance of the blog, and collect information on the subject of Qt is a continuous interaction with the readers, who are trained on the examples on this site. But at the same time any reader can also make …

Read
Evgenii Legotckoi
Evgenii LegotckoiJan. 28, 2016, 11:11 a.m.

QtQt/C++ - Lesson 043. Qt Single Application - Start only one instance of application

Qt Single Application, QSharedMemory, QSystemSemaphore, QLockFile, Qt

Permission to run only one instance of the application may be necessary to limit the problems with memory leaks, or to eliminate possible problems with the competition between two instances of an application for some resources, files, SQLite database, etc. …

Read
Evgenii Legotckoi
Evgenii LegotckoiJan. 28, 2016, 7:24 a.m.

QtQt and Direct3D 12 - First Encounter

D3D12, Direct3D, Qt, Qt Blog, QtD3D12Window

Translation of official news by Laszlo Agocs

The face of graphics APIs is changing. Qt Quick 2 was released in 2012 with Qt 5.0, and built on OpenGL and OpenGL ES 2.0. Changes and improvements have since been made - …

Read
Ua

Qt - Test 001. Signals and slots

  • Result:84points,
  • Rating points4
Ua

Qt - Test 001. Signals and slots

  • Result:42points,
  • Rating points-8
ОК

Qt - Test 001. Signals and slots

  • Result:47points,
  • Rating points-6
Last comments
ИМ
Игорь МаксимовNov. 22, 2024, 11:51 a.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 2:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 8:19 a.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 7:51 a.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 11:02 a.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
NW
Nayo WaiJan. 30, 2025, 9:22 a.m.
не запускается компьютер!!! Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
n
nklyJan. 3, 2025, 2:52 a.m.
Нужно запретить перемещение только некоторых итемов, остальные перемещать можно. Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
M
MarselAug. 16, 2023, 2:26 p.m.
OAuth2.0 через VK, получение email Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.
Evgenii Legotckoi
Evgenii LegotckoiJune 24, 2024, 3:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 6:04 a.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]

Follow us in social networks