Python 3 and Qt 5 with QML Thomas Perl, Jolla Ltd

Python 3 and Qt 5 with QML Thomas Perl, Jolla Ltd

Python 3 and Qt 5 with QML Thomas Perl, Jolla Ltd. Qt Developer Days 2013, Berlin, 2013-10-09 Company Confidential Overview ● Back"round ● $omparison ● AP& Overvie( ● )tatus and Roadmap ● )nakes on a Boat Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Background ● 200+, Py-t! / Hildon on N800/N810 ● 2009, PyMaemo / Hildon on N900 ● 2011, Py)ide / Qt 4 on N9 ● 2013, Py'therSide on Sail4ish O) ● 'n other plat4orms: – )L3%, Py)50, BB-Tart, ... Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Comparison: License/Versions ● PyQt, -PL6d and ommer ial bindings – Qt 4 and Qt 5 – Python 2 and Python 3 ● PySide, L-PL6d 7indings 9 "enerator – Qt 4 only at the moment – Python 2 and Python 3 ● PyOther)ide, &)$.BSD QML Plugin – Qt 5 (Qt 4 s#pport available in Git history; – Python 3 (Python 2 still works, b#t uns#pported) Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Comparison: Performance ● Start#p time :to 4irst visi7le s reen; – Py)ide/PyQt, $Python 9 Python ode 9 Bindin"s 9 Qt – Py'ther)ide, Qt only (Python loadin" delayed until use; ● *esponsiveness – Py)ide/PyQt, )yn hronous by de4a#lt – Py'ther)ide, %syn hronous 7y de4ault ● Li7rary si<e :spa e #sa"e, memory footprint; – Py)ide, Qt$ore = 2.8 2iB, Qt-ui, = 12.5 2iB, ... – Py'ther)ide, = 138 >iB Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Comparison: Usage ● PySide/PyQt – Python interpreter #ses Qt/Q2L to display ?& ● Py'therSide – Q2L #ses Python as a data provider . 7a !end Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl API Overview: QML Methods void addImportPath(path) void setHandler(event, callback) QVariant evaluate(expr) void importModule(name, callback) void call(func, args, callback) Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl API Overview: QML Signals received(data) error(traceback) Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl API Overview: Python Module import pyotherside pyotherside.send(*args) pyotherside.atexit(f) Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl API Overview: Image Provider def func(image_id, size): return (pixels, (width, height), format) pyotherside.set_image_provider(func) Image { src: 'image://python/<image_id>' } Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Current Status ● Des!top Plat4orms fully supported ● )ailfish O) – Best s#pport: %lready in 2er and )ail4ish ') repositories ● Blac!berry 10 – Python 3 from system, ship Qt 8 and Py'ther)ide in app ● Android – )hip Python 3 9 Qt 8 9 PyOther)ide in app Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Roadmap ● Embed Python scripts in Qt *esour es ● )tatic lin!ing o4 libpython + modules ● )upport 4or PyPy (JIT; ● Arapping Python o7Be ts as QML.J) values Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Snakes on a Boat Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl Q&A Project: http://thp.io/2011/pyotherside/ Source: http://github.com/thp/pyotherside/ @thp4 / [email protected] Qt Developer Days 2013, Berlin, 2013-10-09 Python 3 and Qt 5 with Q !, "homas Perl.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    14 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us