Confusion in starting to use PySide for GUI development



  • I am new with PySide.

    I had installed QtCreator -> PySide -> Qt in that order. Then I uninstalled QtCreator because I found it was already in Qt. I got an error when trying to run "Linguist" and got an error that it couldn't start because MSVCR110.dll was missing. I thought I messed something so I uninstalled all things including Python.

    The error with the Linguist didn't end. It is still present. I had downloaded "qt-windows-opensource-5.1.0-msvc2012_opengl-x86_64-offline" from the "download page":http://qt-project.org/downloads.

    Linguist, Designer and Assistant are not working.

    I am confused whether I am installing the correct Qt or not. Can someone explain this to me or point me to correct place?

    EDIT:

    I just wanted to develop GUI for Python. I was told that using PySide would be a good choice.

    I downloaded PySide from "here":http://qt-project.org/wiki/PySide_Binaries_Windows . "PySide-1.2.0.win32-py2.7.exe" specifically. "This page":http://qt-project.org/wiki/Setting_up_PySide said that I needed to download Qt without specifying which version. So I downloaded the latest one.

    I want to make .exe files of the GUI with its functionality coded in Python. I have been using "cx_freeze":http://cx-freeze.sourceforge.net/ for converting Python Scripts to .exe files but that didn't work for GUI made by converting the .ui files made by QtCreator to .py files and adding functionality to it as explained "here":http://qt-project.org/wiki/QtCreator_and_PySide.

    With this information can anyone explain what do I actually need for these purposes? I have looked around and I managed to get a GUI working but I think I am either installing the wrong thing or am missing something.



  • Hi, you must install MSVC2012 or MSVC 2012 express before you can use qt-windows-opensource-5.1.0-msvc2012*



  • BTW, if what you need is PySide, you don't need to install QtCreator and Qt separately. PySide installer should have contained one bundled Qt.

    And note that, PySide only works for Qt4. If you want to compile PySide from source, you should download Qt4.8.*



  • [quote author="1+1=2" date="1374109771"]BTW, if what you need is PySide, you don't need to install QtCreator and Qt separately. PySide installer should have contained one bundled Qt.

    And note that, PySide only works for Qt4. If you want to compile PySide from source, you should download Qt4.8.*

    [/quote]
    Updated the question with more details. Can you provide relevant advice?



  • bump. Updated the question. Someone please answer this question. I cannot start any GUI development without getting these confusion out of the way



  • Hi, as far as I know, if you want to use PySide, what you need to install is

    • Python
    • PySide

    If you want to convert Python scripts into executable Windows programs, and able to run without requiring a Python installation, you can use cx_Freeze or Py2exe or thers. They have no-relationship with QtCreator.



  • @1+1=2

    Using just PySide/Python how would I be able to make the user interfaces? I was told that QtCreator is good for that. It was the main reason for selecting PySide over Tkinter.

    Am I wrong?



  • If i am right, Qt Designer which is part of Qt, should have been installed to your system when you install PySide.

    I don't think QtCreator is much useful for Python user at present.

    [quote author="anshbansal" date="1374255501"]@1+1=2

    Using just PySide/Python how would I be able to make the user interfaces? I was told that QtCreator is good for that. It was the main reason for selecting PySide over Tkinter.

    Am I wrong?[/quote]



  • As I originally stated in my post "Linguist, Designer and Assistant are not working.". I don't know why
    [quote author="1+1=2" date="1374278501"]If i am right, Qt Designer which is part of Qt, should have been installed to your system when you install PySide.

    I don't think QtCreator is much useful for Python user at present.
    [/quote]



  • Hi, the error is clear:

    @
    I got an error when trying to run “Linguist” and got an error that it couldn’t start because MSVCR110.dll was missing.
    @

    The reason is that, you download a Qt which is compiled using MSVC2012. But norther MSVC2012 nor MSVC2012 express is installed in your system.

    Even if you don't want to use the Qt to develop C++ application, the microsoft visual c++ 2012 redistributable package must be installed in your system, which is required by all the application and dlls compiled by MSVC2012.



  • So wrong Qt has been giving the whole problem. Maybe that has overwritten the requirements for running PySide. I don't have Visual Studio 2012 express installed because that doesn't work on Windows 7 properly. If it had metro apps would have been running on my machine already.

    I think I need to read all of your posts again.

    [quote author="1+1=2" date="1374109771"]If you want to compile PySide from source, you should download Qt4.8.*
    [/quote]
    This means if I want to make PySide from its source code made in Qt. Am I correct? If yes, I don't want that.

    I'll remove Qt 5 and reinstall PySide. Maybe that will fix everything.



  • I removed Qt 5 from my computer, removed PySide and reinstalled PySide only.
    There isn't any designer with it.
    I checked on the "wiki page":http://qt-project.org/wiki/Setting_up_PySide. It says that I need Qt. I ran the tests that they have specified and they worked but there isn't any designer present.

    What did I miss?



  • I think QtCreator and Pyside ren next to eachother (very lazily described) and that they share no api, which would mean that you iether have to ditch QtCreator and create GUI's in python/Pyside or use QtCreator without Python.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.