码迷,mamicode.com
首页 > 其他好文 > 详细

pyqt在控件上创建图片

时间:2015-09-19 22:53:19      阅读:739      评论:0      收藏:0      [点我收藏+]

标签: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))



pyqt在控件上创建图片

标签:background   layout   border   图片   

原文地址:http://mafirpy.blog.51cto.com/5482339/1696361

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!