Skip to main content

Like Bootstrap, but qt-er.

Project description

QtStrap: Qt application bootstrapping framework

license pypi version PyPI status

Qt is excellent, but it's also enormous. There's a lot of topics, and many of them have hidden gotchas. PySide2 and PyQt are also excellent, letting us leverage the powerful Qt libraries from up in the clouds in PythonLand, but this arrangement has its own gotchas.

The goal of qtstrap is get your applications up and running quickly, so you can focus on your problem instead of on Qt's idiosyncracies.

Features

More complete docs are available here.

  • qtstrap command line tool to bootstrap new projects
  • crossplatform makefile with useful development commands
  • preconfigured build system using PyInstaller and InnoSetup
  • custom Qt widgets with useful behaviors
  • Pythonic layout system using ContextLayouts
  • Some other stuff I haven't remembered yet

Custom Widgets

  • LabelEdit
  • HLine and VLine
  • LinkLabel
  • Buttons:
    • StateButton
    • IconToggleButton
    • ConfirmToggleButton
    • MenuButton
  • Persistent Widgets (for rapid prototyping of saved data):
    • PersistentCheckableAction
    • PersistentCheckBox
    • PersistentComboBox
    • PersistentLineEdit
    • PersistentListWidget
    • PersistentPlainTextEdit
    • PersistentTabWidget
    • PersistentTextEdit
    • PersistentTreeWidget

Utility Classes and Functions

  • Adapter
  • TimeStamp
  • StringBuilder
  • call_later()

decorators:

  • @accepts_file_drops
  • @trace
  • @singleton

context managers:

  • Defer
  • SignalBlocker

qtstrap.extras:

  • CommandPalette, like VSCode or SublimeText
  • Logging Subsystem: log to local database + log viewer widgets
  • CodeEditor: Custom QTextEditor subclass customized for code editing

Dependencies

  • Python 3
  • PySide2 or PyQt5
  • Make(optional, but recommended)

Installation

pip install qtstrap

Contributing

Contributions are always welcome. Feel free to open an issue or start a new discussion on our GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qtstrap-0.5.3.tar.gz (93.5 kB view hashes)

Uploaded Source

Built Distribution

qtstrap-0.5.3-py2.py3-none-any.whl (70.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page