diff options
Diffstat (limited to 'examples/designer/taskmenuextension/registertictactoe.py')
-rw-r--r-- | examples/designer/taskmenuextension/registertictactoe.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/designer/taskmenuextension/registertictactoe.py b/examples/designer/taskmenuextension/registertictactoe.py new file mode 100644 index 000000000..2b014c790 --- /dev/null +++ b/examples/designer/taskmenuextension/registertictactoe.py @@ -0,0 +1,13 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +from tictactoe import TicTacToe # noqa: F401 +from tictactoeplugin import TicTacToePlugin + +from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection + +# Set PYSIDE_DESIGNER_PLUGINS to point to this directory and load the plugin + + +if __name__ == '__main__': + QPyDesignerCustomWidgetCollection.addCustomWidget(TicTacToePlugin()) |