PyQt4 plugin in c++ application
How is it posible to load python script as plugin in qt based application?
The basic idea would be to make a class in c++
class b
{
virtual void method1();
virtual void method2();
}
and 'somehow' inherit it in python like
class c(b):
def method1:
#do something
def method2:
#do something
I need to be able to modify the gui from python( add buttons to some widgets made in c+开发者_开发问答+ with qt ). Basicaly something similiar to (gedit, blender, etc) plugin architecture with qt
I think you'll first need to expose your C++ methods using Python C API or by using Boost::Python or Swig and then embed Python into your application in order to execute customized Python scripts.
精彩评论