ftrack Qt
Purpose of the QT Library
The reasons of having a separated QT library are:
- Reusability: It has a collection of widgets and dialogs that are decoupled from the framework's specific functionalities. This detachment ensures their applicability across a diverse array of projects and extensions.
- Consistency: Together with the qt-style library it is instrumental to hold uniform visual and operational experience throughout the framework, using common UI components.
- Extensibility: It empowers developers to build upon these generic components, making it easier the creation of new widgets and dialogs that cater to the unique demands of their applications or workflows.
Example Implementation
Consider the StyledDialog
class from the QT library. This class can be utilized as a foundational element for devising custom dialogs that align with the visual theme of ftrack.
It offers the dual benefit of integration without the necessity of intertwining with the core functional components of the framework.
from ftrack_qt.widgets.dialogs import StyledDialog
class CustomDialog(StyledDialog):
# Custom dialog implementation