Skip to main content

ftrack Qt

Purpose of the QT Library

The QT library is pivotal for several reasons:

  • Reusability: It houses 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: The library is instrumental in upholding a uniform visual and operational experience throughout the framework, courtesy of centralized common UI components.
  • Extensibility: It empowers developers to build upon these generic components, paving the way for the creation of more tailored widgets and dialogs that cater to the unique demands of their applications or workflows.

Usage in the Framework

The components of the QT library can be harnessed in two primary ways:

  1. Direct Implementation: Employ the components in their original form for standard UI requirements.
  2. Customized Extension: Inherit and refine these components to devise sophisticated and bespoke UI elements that resonate with the framework's aesthetic norms and functional ethos.

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.

This methodology fosters the development of UI elements that are not only operational but also aesthetically synchronized with the broader framework. 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