Qt: Show pointer cursor for status bar buttons
This commit is contained in:
@@ -86,6 +86,7 @@ class StatusBarButton(QPushButton):
|
|||||||
self.clicked.connect(self.onPress)
|
self.clicked.connect(self.onPress)
|
||||||
self.func = func
|
self.func = func
|
||||||
self.setIconSize(QSize(25,25))
|
self.setIconSize(QSize(25,25))
|
||||||
|
self.setCursor(QCursor(Qt.PointingHandCursor))
|
||||||
|
|
||||||
def onPress(self, checked=False):
|
def onPress(self, checked=False):
|
||||||
'''Drops the unwanted PyQt5 "checked" argument'''
|
'''Drops the unwanted PyQt5 "checked" argument'''
|
||||||
|
|||||||
Reference in New Issue
Block a user