mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use WA_TranslucentBackground instead of stylesheet
This commit is contained in:
parent
10ed0058e9
commit
d798bdc35f
1 changed files with 2 additions and 6 deletions
|
|
@ -21,16 +21,12 @@ class DropEmpty(QtWidgets.QWidget):
|
|||
|
||||
self._label = QtWidgets.QLabel('Drag & Drop')
|
||||
self._label.setFont(font)
|
||||
self._label.setStyleSheet(
|
||||
'background-color: transparent;'
|
||||
)
|
||||
self._label.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
|
||||
font.setPointSize(12)
|
||||
self._sub_label = QtWidgets.QLabel('(drop files here)')
|
||||
self._sub_label.setFont(font)
|
||||
self._sub_label.setStyleSheet(
|
||||
'background-color: transparent;'
|
||||
)
|
||||
self._sub_label.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
|
||||
layout.addWidget(self._label, alignment=BottomCenterAlignment)
|
||||
layout.addWidget(self._sub_label, alignment=TopCenterAlignment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue