Qt → QGlobalShortcut - 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 …
ReadQt → Qt 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 …
ReadXlib → XKeysymToKeycode
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
Readdisplay …
Xlib → 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
Readdisplay // Specifies the connection to the X server. keycode // Specifies the KeyCode or AnyKey. …
Xlib → XUngrabKey
HotKey, linux, X11, XUngrabKey
Syntax
XUngrabKey(display, keycode, modifiers, grab_window) Display * display; int keycode; unsigned int modifiers; Window grab_window;
Arguments
Readdisplay // Specifies the connection to the X server. keycode // Specifies the KeyCode or AnyKey. modifiers // Specifies the set of keymasks or …
Qt → Qt 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 …
ReadQML → QML - 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 …
ReadQt → Qt/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. …
ReadQt → Qt 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- Unknown akadamn
- Jan. 24, 2025, 7:14 a.m.
Qt - Test 001. Signals and slots
- Result:84points,
- Rating points4
- Unknown akadamn
- Jan. 24, 2025, 6:22 a.m.
Qt - Test 001. Signals and slots
- Result:42points,
- Rating points-8