标签:background layout border 图片
# text=self.UserName.text()
# if text.isEmpty():
# imgpath=r‘Image/lineclose.png‘
# self.ButtonShowKeyboard = QToolButton(self)
# self.ButtonShowKeyboard.setCursor(Qt.PointingHandCursor)
# self.ButtonShowKeyboard.setFocusPolicy(Qt.NoFocus)
# self.ButtonShowKeyboard.setIcon(QIcon(imgpath))
# self.ButtonShowKeyboard.setStyleSheet("background: transparent; border:
none;")
# layout = QHBoxLayout(self)
# layout.addWidget(self.ButtonShowKeyboard,0,Qt.AlignRight)
# layout.setSpacing(0)
# layout.setMargin(5)
#
# self.UserName.setLayout(layout)
# layout.addWidget(self.ButtonShowKeyboard,0,Qt.AlignRight)
# self.PassWords.setLayout(layout)
#
# self.ButtonShowKeyboard.setToolTip(QApplication.translate("None", "Show
virtual keyboard", None, QApplication.UnicodeUTF8))
标签:background layout border 图片
原文地址:http://mafirpy.blog.51cto.com/5482339/1696361