Results 1 to 4 of 4

Thread: Pyside/PyQT and QML: learn Pyside first, or both at same time?

  1. #1
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Pyside/PyQT and QML: learn Pyside first, or both at same time?

    I have been learning to use Qt in Python using PySide. I am relatively new to Python, and have been learning PySide for two weeks now.

    Today when I went to the PySide page for tutorials, they are all tutorials on QML (http://srinikom.github.io/pyside-doc...als/index.html). So now I'm a little worried. Am I wasting my time with PySide? Should I learn PySide before QML? Can I use QML with Python if I am not a Javascript user? Why does a PySide site have tutorials in QML and not pure PySide? Is it expected that modern applications will use QML in conjunction with PySide?

    In terms of goals: I want to build a desktop application in which users can move around elements easily and seamlessly, and I planned to use PySide. Frankly it looks like QML might be better. If this is true, should I still just focus (for now) on learning PySide, and then once I know that to a decent level, start to put my toe into QML? That is, is there a natural learning progression where QML will come second, or since I'm just starting out, will my progress be fastest if I do both in parallel?

    OR perhaps my questions show I am fundamentally confused? Sorry this is scattershot.

    Related bits I have found:
    http://pysnippet.blogspot.com/2011/0...e-and-qml.html
    http://qt-project.org/wiki/Hello-Wor...de-and-QtQuick
    http://qt-project.org/wiki/PySide-QtQuick-Tutorials

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,396
    Thanks
    37
    Thanked 1,542 Times in 1,493 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Pyside/PyQT and QML: learn Pyside first, or both at same time?

    You are looking at two different levels of an application.

    PySide, as one of the Python bindings for Qt, is for programming with Qt in Python.

    So like PyQt it can be used to create Qt applications instead of using C++.

    QML, is most often used with QtQuick to describe highly dynamic user interfaces.

    An application usually has more than just a user interface, so the application's core or logic needs to be implemented somehow.
    That is usually done in C++, but Python bindings can obviously used to do that part in Python.

    There is even a set of Python bindings that has been specifically developed for being used with QML: PyOtherSide

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    neuronet (18th June 2014)

  4. #3
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: Pyside/PyQT and QML: learn Pyside first, or both at same time?

    Thanks a lot, this has been driving me crazy for a long time, it is useful to have that explanation.

    I wonder why PySide only has QML tutorials on their home page when you click on PySide tutorials...weird.

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,396
    Thanks
    37
    Thanked 1,542 Times in 1,493 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Pyside/PyQT and QML: learn Pyside first, or both at same time?

    PySide was created at a time when Nokia was focusing heavily on QML.
    This might have influenced which topics the learning material went for.

    Cheers,
    _

  6. The following user says thank you to anda_skoa for this useful post:

    neuronet (21st June 2014)

Similar Threads

  1. pyside question pls help
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 12th July 2013, 10:44
  2. Using QML Components for the Desktop with PySide
    By hansotronic in forum Qt Quick
    Replies: 2
    Last Post: 30th October 2012, 00:49
  3. Qt Designer and PySide
    By moabi in forum Newbie
    Replies: 0
    Last Post: 25th August 2011, 08:40
  4. Replies: 3
    Last Post: 30th July 2011, 21:42
  5. Pyside needs QT?
    By junichiro in forum Installation and Deployment
    Replies: 0
    Last Post: 30th July 2011, 15:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.