Linux programming and development: Use QT to create Skin-general Linux technology-Linux programming and kernel information. The following is a detailed description. The style change of the software interface can be completed through two mechanisms: one is to set Themes, which uses the Components of the interface library itself) the control capability of the switch display style; the other is to provide different series of images to switch the display interface, that is, the Skin mentioned here.
There are several important factors worth considering when preparing the skin:
1. Use a borderless window
In XWindow, a borderless window is a window that is not subject to irregular boundaries managed by the window manager. Because it is not managed by the window manager, there is no Title Bar attached to the software window interface. In Qt, the simplest way to create a borderless window is to set the WFlags value of QWidget to WStyle_NoBorder. It is defined in qnamespace. h. The image mask must be used for the entire window. X Shape Extension is used to meet the requirements. Can be used directly in Qt,