The goal is to write your own graphical shell like GNOME, KDE, XFCE. Execution language C ++, Qt5 framework. As far as I understand, you need to force Qt5 to interact with X11 to draw graphics. Tell me, does Qt5 have such capabilities or should this problem be solved in other ways? thank
- I doubt that this question has practical value. Qt is intended primarily for writing GUI applications. It makes no sense alone to write a new graphical environment. - mymedia
- It makes sense to me. Otherwise I would not ask - Nikola Krivosheya
- @mymedia, KDE is written using Qt. This can be done. - 0andriy
- On this site, you can ask questions that are relevant "to the real problem encountered in practice , the solution of which can be summarized briefly in a couple of paragraphs . " See help . I'm not sure that the question will be useful to anyone else from further visitors. Because usually the task does not arise exactly to write your own environment, and often try to tweak existing solutions for themselves. - mymedia
|
1 answer
Quote:
As with the Windows OS, the Qt library on UNIX provides the ability to access events at a low level. The QWidget class contains the x11Event () method, which is required to receive X window system events. To receive events, this method must be overridden. If, after the completion of the method, you do not need to continue processing the event with Qt methods, then you must return true from this method.
Max Schlee. "Qt 4.8. Professional C ++ programming"
|