giumas / shiboken2_minimal

A minimal example to wrap a custom Qt widget
https://stackoverflow.com/questions/47607616/shiboken2-and-custom-qt-widget
BSD 3-Clause Clear License
8 stars 1 forks source link

Shiboken 2 - Minimal example

Currently, only tested on Windows.

Steps

::

conda config --add channels conda-forge

::

conda create -n pyside2 python=3.6 pyside2

::

activate pyside2

::

shiboken2 --help

::

git clone https://github.com/giumas/shiboken2_minimal.git C:\shiboken2_minimal

::

cmake -G "Visual Studio 14 2015 Win64" C:\shiboken2_minimal

::

python example.py

Known issues

::

3> c:\shiboken2_minimal_build\wrap\pyfoo\mainwindow_wrapper.cpp(1378): error C2509: 'metaObject': member function not declared in 'MainWindowWrapper'
3> c:\shiboken2_minimal_build\wrap\pyfoo\mainwindow_wrapper.h(10): note: see declaration of 'MainWindowWrapper'