[PyQt] QFrame with frameShadow set to Plain
Pietro Fara
pietro.fara at gmail.com
Fri Jan 16 21:32:49 GMT 2015
Hi all, first message from me.
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:
self.line = QtWidgets.QFrame(self.scrollAreaWidgetContents)
self.line.setGeometry(QtCore.QRect(10, 30, 611, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.line.sizePolicy().hasHeightForWidth())
self.line.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(9)
font.setBold(False)
font.setWeight(50)
self.line.setFont(font)
self.line.setStyleSheet("color:#000")
---> self.line.setFrameShadow(QtWidgets.QFrame.Plain)
self.line.setLineWidth(2)
self.line.setMidLineWidth(0)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
---> self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
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?
Pietro Fara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150116/ce680524/attachment.html>
More information about the PyQt
mailing list