Awesome custom widgets made for QT Desktop Applications. Simplify your UI development process. These widgets can be used in QT Designer then imported to PySide code.
First time installer:
pip install QT-PyQt-PySide-Custom-Widgets
Upgrade/install the latest version:
pip install --upgrade QT-PyQt-PySide-Custom-Widgets
The examples folder in this repository contains a few code examples you can use to test and learn about the custom widgets.
-
Added support for loading multiple
JSON Stylesheets
By default, the json file namedstyle.json
will be loaded, so no need to specify. The file must me inside the root directory of your project,json
directory, orjsonstyles
directory inside your project folder for it to be automatically loaded.If you have multiple JSON stylesheet files, then you can apply them to your GUI like this:
######################################################################## # APPLY JSON STYLESHEET ######################################################################## # self = QMainWindow class # self.ui = Ui_MainWindow / user interface class loadJsonStyle(self, self.ui, jsonFiles = { "mystyle.json", "mydirectory/myJsonStyle.json" }) ########################################################################
This feature is helpful especially when you have multiple windows files that will share only some parts of the stylesheet shuch app app title, settings etc.
-
Toggle logs: You can now switch app logs on or off. This can be done from a python file:
# Show Logs self.showCustomWidgetsLogs = True
# Hide Logs self.showCustomWidgetsLogs = False
From the JSON file:
{ "ShowLogs": true,
{ "ShowLogs": false,
- Added full support for
pyside6
Documentation:
-
Available custom widgets:
AnalogGaugeWidget
- A digital analog widget using just a singleQWidget
. Read moreQCustomCheckBox
- Customize and animateQCheckBox
. Read moreQCustomProgressIndicator
- Create a beautiful modern progress indicator for multiple tasks. Read moreQCustomQPushButton
- Customize and animateQPushButton
with preset themes and useiconify
to animate the icons. Read moreQCustomQSlider
- Easily move the slider to the current clicked position of aQSlider
. Read moreQCustomQStackedWidget
- Add beautiful transition animations and navigate throughQStackedWidget
. Read moreQCustomSlideMenu
- Expand and collapse the size of yourQWidgets
i.e side menu, popup notifications, floating widgets etc. Read moreQMainWindow
- Apply custom window title bar and navigation. Read more
-
Other extra functions:
ProjectMaker / project wizard
- Used for creating aQt-Python
project on an empty folder. Read moreQCards
- Apply the same syle iedrop-shadow effect
to a group ofQFrame
,QWidget
etc. Best for creating dashboard cards. Read moreQCustomQPushButtonGroup
- Create a group ofQPushButton
s with differentstylesheet
s for the currentactive
orclicked
button and other innactive buttons. Read moreQt Theme Engine
- Beautify your app. This feature will create multiple themes for QT for Python apps. Read moreQSettings
- Easily save your app configurations that will be remembered even after restarting the app ie app theme from Qt Theme Engine`. Watch the tutorial
-
Or watch the tutorial videos here
Analog Gauge Widget
Responsive Animated GUI
Animated QStacked Widget