Custom widgets and widget animations made for QT applications
Project description
QT-PyQt-PySide-Custom-Widgets
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.
Installation
First time installer:
pip install QT-PyQt-PySide-Custom-Widgets
Upgrade/install the latest version:
pip install --upgrade QT-PyQt-PySide-Custom-Widgets
Testing
The examples folder in this repository contains a few code examples you can use to test and learn about the custom widgets.
Progress indicator example:
What is new?
Version 0.6.9:
New project structure.
Quick theme engine.
New custom widgets logs
Quick CMD/Terminal
commands:
- To launch
ProjectMaker / project wizard
, run
Custom_Widgets --create-project
This will create a Qt-python
project inside your empty folder, ready to run.
- Easy to convert UI files to py. The cutom widgets
Theme Engine
eliminated the need forQRC
topython
file conversion, therefore to generateUI-Python
files without any errors, use
Custom_Widgets --convert-ui ui-path --qt-library your-lib
Where: ui-path
is the UI file pathe or folder containing UI files.
your-lib
is PySide6
, PySide2
, PyQt5
or PyQt6
- Monitor changes made to UI file and generate new .py file and other necessary files for the custom widgets
Custom_Widgets --monitor-ui ui-path --qt-library your-lib
Also now you can change the app theme and apply new icons without restarting the app. The custom widgets modulecomes with itw own icon sets:
- Feather
- FontAwesome
- and Google material design icons.
Version 0.6.2:
-
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,
Version 0.6.8:
- Added full support for
pyside6
How to use it.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for QT-PyQt-PySide-Custom-Widgets-0.6.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32556ca3c546a45bb1ec2dfa3bdfa655f670f2c619d342b5fad291e3a8f88bb1 |
|
MD5 | afe5887d542175a5608a0f43a5777910 |
|
BLAKE2b-256 | ff6ab2ba115f84a18da54a0ee60e171d05926ae7dd232cb13d7d5cadd091413e |
Hashes for QT_PyQt_PySide_Custom_Widgets-0.6.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e25062cf8918f814abec4ca82529586b1b4d326aa17de7ad073c868587409c5f |
|
MD5 | 5251a76ca36633cb3f962ace837bfdf4 |
|
BLAKE2b-256 | 38c922fce9132cb6222eb9293c0ba6dd56103f601523f8865d48124f5ca8c440 |