Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Qt Wiki
Search

    Qt for Python

    From Qt Wiki

    EnArBgDeElEsFaFiFrHiHuItJaKnKoMsNlPlPtRuSqThTrUkZh

    Qt for Python

    Qt for Python official logo.

    TheQt for Python project aims to provide a complete port of thePySide module to Qt. The development started onGitHub in May 2015. The project managed to port PySide to Qt 5.3, 5.4 & 5.5. During April 2016 The Qt Company decided to properly support the port (seedetails ).

    The module was released mid June 2018 as a Technical Preview (supporting Qt 5.11),and it was officially released without the Technical Preview tag, in December 2018 for Qt 5.12.In December 2020, the module was released for Qt6, which is the latest available version, which has the following differences:

    • It doesn't support Python 2.7,
    • Check theCompatibility Matrix for the supported Python version per each PySide version.

    This wiki page tracks the progress of theQt for Python project development and provides further information concerning the effort.

    Qt for Python is available underLGPLv3/GPLv2 andcommercial license for the following platforms:

    LinuxmacOSWindows
    amd64aarch64Apple Silicon64bit
    Python 3.10+

    Please notice

    • i386/32bit architecture is not supported.
    • iOS, and WebAssembly are not supported yet.


    Get PySide6 via pip by running:pip install pyside6

    What does it look like?

    CodeApplication
    importsysfromPySide6.QtCoreimportQtfromPySide6.QtWidgetsimportQApplication,QLabelif__name__=="__main__":app=QApplication(sys.argv)label=QLabel("Hello World",alignment=Qt.Alignment.AlignCenter)label.show()sys.exit(app.exec())

    More examples can be found in theproject's repository inside theexamples directory.

    Python compatibility matrix

    2.73.53.63.73.83.93.103.113.123.133.143.15
    5.15.0oooooxxxxxxx
    5.15.1-7ooooooxxxxxx
    5.15.8oooooooxxxxx
    5.15.9-10xooooooxxxxx
    5.15.11-15xxooooooxxxx
    6.0.xxxooooxxxxxx
    6.1.xxxooooxxxxxx
    6.2.xxxoooooxxxxx
    6.3.xxxoooooxxxxx
    6.4.xxxxoooooxxxx
    6.5.xxxxoooooxxxx
    6.6.xxxxxoooooxxx
    6.7.xxxxxxooooxxx
    6.8.xxxxxxoooooxx
    6.9.xxxxxxoooooxx
    6.10.xxxxxxoooooxx
    6.11.xxxxxxxooooxx

      o   Free Threaded Python is not fully supported.

    Getting Started

    Community

    The followingchat platforms are connected via a bridge, so independent of the one you join, you will get the messages from the other ones.

    Development Status

    • Development Notes by date: the summary of the development progress.
    • Qt for Python Development Progress Notes The most current view of the progress can be found in Jira:Unresolved issues andAll issues (including resolved). The second link is useful to monitor the progress of the backlog. The best way to achieve this is to sort the list by the "Updated" column. Larger backlog/feature items are filed as "User Stories" in Jira.
    • Missing PySide6 bindings: the list of the current missing bindings.

    Contributing to the Qt for Python Wiki

    This Wiki is a community area where you can easily contribute, and which may contain rapidly changing information.Please put any wiki pages related to Qt for Python into the "QtForPython" category by adding the following text to the top of the page:[[Category:Qt for Python]]

    When creating a new wiki page, please start the name with the prefixQt_for_Python/, so all the wiki page names will have the same structure and breadcrumbs are generated for easier navigation.

    Retrieved from "https://wiki.qt.io/index.php?title=Qt_for_Python&oldid=45201"
    Category:

    [8]ページ先頭

    ©2009-2026 Movatter.jp