PyQt5 QCommandLinkButton - Getting Graphics Effects Last Updated : 30 Jun, 2020 Comments Improve Suggest changes Like Article Like Report In this article we will see how we can set graphic effect to the QCommandLinkButton. Graphic effect can be shadow, blur or color effect, these effect can be changed any time also new effects can be created any time. If there already is an effect installed on this command link button, QWidget will delete the existing effect before installing the new effect. Graphic effect can set to the command link button with the help of setGraphicsEffect method. In order to do this we use graphicsEffect method with the command link button object Syntax : button.graphicsEffect() Argument : It takes no argument Return : It returns QGraphicEffect object Below is the implementation Python3 1== # importing libraries from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtCore import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # setting title self.setWindowTitle("Python ") # setting geometry self.setGeometry(100, 100, 500, 400) # calling method self.UiComponents() # showing all the widgets self.show() # method for components def UiComponents(self): # creating a command link button cl_button = QCommandLinkButton("Press", self) # setting geometry cl_button.setGeometry(250, 100, 200, 50) # shadow effect effect = QGraphicsDropShadowEffect() effect.setOffset(20, 20) # setting effect to the command link button cl_button.setGraphicsEffect(effect) # creating label label = QLabel("GeeksforGeeks", self) # setting label geometry label.setGeometry(50, 100, 200, 80) # making label multiline label.setWordWrap(True) # getting graphic effect value = cl_button.graphicsEffect() # setting text to the label label.setText("Effect : " + str(value)) # create pyqt5 app App = QApplication(sys.argv) # create the instance of our Window window = Window() # start the app sys.exit(App.exec()) Output : Comment More infoAdvertise with us Next Article PyQt5 QCommandLinkButton - Getting Graphics Effects R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Python PyQt-QCommandLinkButton Practice Tags : python Similar Reads PyQt5 QCommandLinkButton - Setting Graphics Effects In this article we will see how we can set graphic effect to the QCommandLinkButton. Graphic effect can be shadow, blur or color effect, these effect can be changed any time also new effects can be created any time. If there already is an effect installed on this command link button, QWidget will de 2 min read PyQt5 QCommandLinkButton - Getting Actions List In this article we will see how we can get the action list of the QCommandLinkButton. By default command link buttons has an empty action list i.e there is no element in action list although by adding action to the menu of command link button we can add elements in action list. We use addAction meth 2 min read PyQt5 QCommandLinkButton - Getting Icon In this article we will see how we can get the icon of the QCommandLinkButton. By default an arrow is set as the icon of the command link button although we can change this any time with the help of setIcon method. In order to do this we use icon method with the command link button object Syntax : b 2 min read PyQt5 QCommandLinkButton - Getting Flat property In this article we will see how we can get the flat property of the QCommandLinkButton. This property holds whether the command link button border is raised. This property's default is false. If this property is enabled, most styles will not paint the command link button background unless the button 2 min read PyQt5 QCalendarWidget - Getting Graphics effect In this article we will see how we can get the graphic effect of the QCalendarWidget. A graphic effect is an effect that can be used on a sprite or the Stage, changing their look in some way. Graphic effect can be color shadow anything. It can be set to calendar with the help of setGraphicsEffect me 2 min read PyQt5 QCommandLinkButton - Getting Icon Size In this article we will see how we can get the icon size of the QCommandLinkButton. By default an arrow is set as the icon of the command link button although we can change this any time with the help of setIcon method. Icon size change the size of the icon of the command link button, which can be d 2 min read PyQt5 QCommandLinkButton - Changing Icon In this article we will see how we can change the icon of the QCommandLinkButton. By default a arrow is set as the icon of the command link button although we can change this any time. In order to do this we use setIcon method with the command link button object Syntax : button.setIcon(icon) Argumen 1 min read PyQt5 QCommandLinkButton - Getting Auto Default Property In this article we will see how we can get the auto default property of the QCommandLinkButton. If this property is set to true then the command link button is an auto default button. In some GUI styles a default button is drawn with an extra frame around it, up to 3 pixels or more. Qt automatically 2 min read PyQt5 QCommandLinkButton - Getting down property In this article we will see how we can get down property of the QCommandLinkButton. Down property holds whether the command link button is pressed down. If this property is true, the button is pressed down. The signals pressed and clicked are not emitted if we set this property to true. By default t 2 min read PyQt5 QCommandLinkButton - Getting Menu of it In this article we will see how we can get menu of the QCommandLinkButton. Menu is basically an extra feature of command link button which allows it to have a drop down menu from which user can click on the menu items. We can set the menu to the command link button with the help of setMenu method, b 2 min read Like