Based on the development of embedded system,R-eal-time monitoring of the cabin environ-ment,including monitoring of the energy data of carbon monoxide (CO) hydrogen sulfide (H2S), oxygen (O2), combustible gas (GAS) and node modules.The precise monitoring of the environmental variables in the cabin has the function of multi point monitoring and wireless transmission as well as the early warning value.Based on QT4.8.6, the interface of cabin control system was developed, and the real-time curves of carbon monoxide (CO), hydrogen sulfide (H2S), oxygen (O2), combustible gas (GAS) and electric quantity data were drawn out. At the same time, the function of data storage and callback can be realized.In QT4.8.6, the method of combining external class QCustomplot and List container is used to realize the rendering of real-time data curve more efficiently. Compared to the traditional double buffering drawing, the efficiency of development has been greatly improved.