Home > Back-end >  How to add a myOwn-background image to QPlainTextEdit?
How to add a myOwn-background image to QPlainTextEdit?

Time:11-01

For example, if you create a simple plaintextedit, the background is just white. How do I change white background with my own image?

CodePudding user response:

In design edit, you can set the styleSheet in properties of QWidget objects, you can set the background using Stylesheet ,for example: ‍‍‍‍background-image: url("path/image.png");

  • Related