PyQt5 QCommandLinkButton - Setting 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. In order to do this we use setGraphicsEffect method with the command link button object Syntax : button.setGraphicsEffect(effect) Argument : It takes QGraphicEffect object as argument Return : It returns None Note: This method will apply the effect on itself and all its children. 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) # 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 - Setting Graphics Effects R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Python PyQt-QCommandLinkButton Practice Tags : python Similar Reads PyQt5 QCommandLinkButton - Getting 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 - Setting Flat property In this article we will see how we can set the flat property to 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 1 min read PyQt5 QCalendarWidget - Setting Graphics effect In this article we will see how we can set graphic effect to 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. In order to do this we will use setGraphicsEffect method with the Q 2 min read PyQt5 QCommandLinkButton - Setting Description Text In this article we will see how we can set description text to the QCommandLinkButton. Description text property holds a descriptive label to complement the command link button text. Setting this property will set a descriptive text on the button, complementing the text label. This will usually be d 1 min read PyQt5 QCommandLinkButton - Setting Border to it In this article we will see how we can border to the QCommandLinkButton. Command link button is a special type of button it has qualities of both push button and the radio button. By default there is no extra border to the command link button although when it get pressed we are able to see the borde 2 min read PyQt5 QCommandLinkButton - Setting Icon Size In this article we will see how we can set 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. In order to do 2 min read PyQt5 QCommandLinkButton - Setting Help Text In this article we will see how we can set the help text of the QCommandLinkButton. Help text is the text used to tell the other user about the usage information about the command link button. It contains the information which can be used to check the usage, limitation etc. In order to do this we us 1 min read PyQt5 QCommandLinkButton - Setting Auto Default Property In this article we will see how we can set 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 - Setting down property In this article we will see how we can set down property to 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 1 min read PyQt5 QCommandLinkButton - Setting Menu to it In this article we will see how we can set menu to the QCommandLinkButton. Menu is basically an extra feature of command link button which allows its to have a drop down menu from which user can click on the menu items. Below is how the command link button looks like In order to do this we use setMe 2 min read Like