Re: [PySide] Shiboken in python -- was PySide - Qt5 - Swig
Gustavo, Hi ! I'm a Qt with python developer. For this I use Pyside, however this project is running into some problems. There isn't more developers and we don't know if Digia will support it. We ( pyside list ) were discussing how to continue this project. Shiboken was developed just for PySide, but it's very irksome to continuously develop it. So we like the idea of create a new generator with Python. But I don't like to reinvent the wheel, and your project seems fantastic for us. My idea is create this binding for Qt 4.8.4 first. What do you think about it ? It will be straightforward to do this? PySide is CC, if you reply to me I will send to them a copy. Lucas A. Tanure Alves +55 (19) 88176559 ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside
[PySide] Fwd: Shiboken in python -- was PySide - Qt5 - Swig
-- Forwarded message -- From: Gustavo Carneiro gjcarne...@gmail.com Date: Sun, Jan 20, 2013 at 2:44 PM Subject: Re: [PySide] Shiboken in python -- was PySide - Qt5 - Swig To: Lucas Tanure ltan...@gmail.com Hello, I personally don't know anything about Qt internals, so I can't comment on how difficult it will be to use PBG to wrap it. On the PBG side, I think there is a core generator that is pretty good, and can be hacked if needed. There are some builtin customization hooks already in it. In the ns-3 project we have our own object system, and so PBG had to be made flexible enough to support it. The gccxml-based API scanner is not in such good shape, though, so I wouldn't rely on it. Mainly because the GCCXML project itself is not well maintained: it does not keep up with upstream GCC, and so GCCXML will simply produce compilation errors with newer stdc++ headers. GCCXML does not seem to have a lot of future, unfortunately. Hacking PBG can be slightly complex in some parts, but still I think it's considerably less than alternatives like Cython. Not wanting to bash Cython, I think it's a fantastic piece of software, but customizing it is not so simple due to its complexity. On my part, I have not spent much effort developing PBG lately, as I have more pressing work to do lately. I can try to answer some questions, but don't ask any significant effort from me. Otherwise, feel free to hack away! Hope this helps. -- Gustavo J. A. M. Carneiro The universe is always one step beyond logic. -- Frank Herbert ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside
Re: [PySide] i can not find Q_ARG in pyside, please help me
Be aware that PySide has a bug regarding QGenericArgument and QGenericReturnArgument. The default constructor does not work. I already filled the issue with a workaround half a year ago: https://bugreports.qt-project.org/browse/PYSIDE-76 You can either patch your PySide installation or avoid using these two classes without arguments. - Dirk On 20.01.2013 05:33, Aaron Richiger wrote: Hello! What do you use it for? According to the Qt doc, the Q_ARG macro is used to generate a QGenericArgument: This macro takes a Type and a value of that type and returns a QGenericArgument object that can be passed to QMetaObject::invokeMethod(). As far as I know, there is no equivalent for this macro in PySide, but even if the doc tells you not to do so, it may be possible in PySide to instantiate QGenericArgument() without a macro: from PySide.QtCore import * arg = QGenericArgument(arg_name, 17) print arg.name(), arg.data() The PySide doc is auto-generated, so there are parts where it's content is true for C++, but not for Python/PySide. This might be such a case. Please let me know, what you want to use Q_ARG for (with some code would be the best), because in years of PySide programming, I never missed it, so there may be another PySide solution for your task... Cheers Aaron Am 20.01.2013 06:43, schrieb zhengjunm: hello, i can not find Q_ARG in pyside, please help me thanks zhengjunm ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside
Re: [PySide] Simple shiboken binding tutorial -- was PySide - Qt5 - Swig
Same as you, I benefit from Roman's tutorial package a lot. I was on-and-off on trying to work out a binding for more than 6 months! Thank you, Roman! When the MinGW shiboken build is ready, I'll start to move my Qt C++ application to PySide. From: sable.sourcefo...@gmail.com [mailto:sable.sourcefo...@gmail.com] On Behalf Of Sébastien Sablé Sablé Sent: Saturday, January 19, 2013 1:10 AM To: Roman Lacko Cc: ZHONG Zhu; pyside@qt-project.org Subject: Re: [PySide] Simple shiboken binding tutorial -- was PySide - Qt5 - Swig Many thanks Roman! I have been able to run your tutorial, and then adapt it to start binding a library on which I work. I have only binded 4 classes for the moment out of around one hundred, and that required quite a lot of trial and error, but it gets easier as I learn the typesystem syntax. That tutorial got me started and probably saved me plenty hours of setting up the project. cheers Sébastien Sablé ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside
Re: [PySide] Simple shiboken binding tutorial -- was PySide - Qt5 - Swig
I'm glad I could help, the mingw build has still some issues to solve 2013/1/21 ZHONG Zhu zhu.zh...@alcatel-sbell.com.cn Same as you, I benefit from Roman’s tutorial package a lot. I was on-and-off on trying to work out a binding for more than 6 months! Thank you, Roman! When the MinGW shiboken build is ready, I’ll start to move my Qt C++ application to PySide. ** ** *From:* sable.sourcefo...@gmail.com [mailto:sable.sourcefo...@gmail.com] *On Behalf Of *Sébastien Sablé Sablé *Sent:* Saturday, January 19, 2013 1:10 AM *To:* Roman Lacko *Cc:* ZHONG Zhu; pyside@qt-project.org *Subject:* Re: [PySide] Simple shiboken binding tutorial -- was PySide - Qt5 - Swig ** ** Many thanks Roman! I have been able to run your tutorial, and then adapt it to start binding a library on which I work. I have only binded 4 classes for the moment out of around one hundred, and that required quite a lot of trial and error, but it gets easier as I learn the typesystem syntax. That tutorial got me started and probably saved me plenty hours of setting up the project. cheers Sébastien Sablé ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside