Home > Mobile > On style single color loaded questions
On style single color loaded questions
Time:04-21
You, could you tell me why QLineEdit setStyleSheet in the style sheet set after the color of color, the clues will be a lot lighter than the actual? Is there a way to make it according to the original color?
Screenshots of the clues of the color in the color than the actual QLineEdit stylesheets: # 003 da6 this color light a lot, is there a way to let it show the original colors?
CodePudding user response:
Color is set to type when the color of the display, Qt default placeholder color is added to the color of 128 alpha transparency From the stylesheet document look like no place to set PlaceholderText You really want to set with QPalette (see QPalette document 5.12 previous versions or a death, can be set after 5.12)