<div dir="ltr"><div>Hi all, first message from me.<br></div>I'm starting using PyQt5 two months ago and I have some problems with a QFrame with frameShadow set to Plain. The PyQt translate it like this:<br><br><br>self.line = QtWidgets.QFrame(self.scrollAreaWidgetContents)<br> self.line.setGeometry(QtCore.QRect(10, 30, 611, 31))<br> sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)<br> sizePolicy.setHorizontalStretch(0)<br> sizePolicy.setVerticalStretch(0)<br> sizePolicy.setHeightForWidth(self.line.sizePolicy().hasHeightForWidth())<br> self.line.setSizePolicy(sizePolicy)<br> font = QtGui.QFont()<br> font.setPointSize(9)<br> font.setBold(False)<br> font.setWeight(50)<br> self.line.setFont(font)<br> self.line.setStyleSheet("color:#000")<br>---> self.line.setFrameShadow(QtWidgets.QFrame.Plain)<br> self.line.setLineWidth(2)<br> self.line.setMidLineWidth(0)<br> self.line.setFrameShape(QtWidgets.QFrame.HLine)<br>---> self.line.setFrameShadow(QtWidgets.QFrame.Sunken)<br> self.line.setObjectName("line")<br><div><br></div><div>Look at the arrows: first pyqt sets the frameShadow to Plain and then it sets it to Sunken again. Is it a bug or there is a way to fix it?<br></div><div><br clear="all"><div><div><div class="gmail_signature">Pietro Fara</div></div>
</div></div></div>