Как сделать Button и другие виджеты непрозрачными?
Поэтому я довольно долго пытался установить фон в конструкторе Qt.
Я узнал, как установить фоновое изображение и столкнулся с другими проблемами, кажется, что КАЖДЫЙ виджет, который у меня есть, прозрачен, и вы ничего не можете прочитать на виджетах, и обычно они белые и не знаю, как его установить
Мой код.ui:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>400</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">background-image: url(:/img/Programming/Eclipse/Encrypter and Decrypter/Images/matrix.png);</string>
</property>
<widget class="QPushButton" name="pushbutton">
<property name="geometry">
<rect>
<x>140</x>
<y>310</y>
<width>75</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Encrypt</string>
</property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>280</x>
<y>310</y>
<width>75</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Decrypt</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>30</x>
<y>80</y>
<width>201</width>
<height>201</height>
</rect>
</property>
<property name="toolTip">
<string><html><head/><body><p>Input your text here</p></body></html></string>
</property>
</widget>
<zorder>pushButton</zorder>
<zorder>pushbutton</zorder>
<zorder>textEdit</zorder>
</widget>
<resources>
<include location="resource.qrc"/>
</resources>
<connections/>
</ui>