QSS file beautify invalid interface

Problem Description:

The same qss content, built-effective, written qss file to load invalid.

 

Many users search ......... manager is qss file encoding and qt text editor property ........ and how I try, how to fail.

 

solution:

Remove qss content from the file, the call is readAll () function, and this function returns QByteArray type. Direct use of this type as a parameter passed to the real setStyleSheet () during normal operation. The way of my success is QString (QByteArray) construct a temporary QString.

 

 

In fact, unreasonable, and direct construction QByteArray = structure should be equivalent. . . . Unreasonable. . .

Guess you like

Origin www.cnblogs.com/azbane/p/11613062.html