##// END OF EJS Templates
- Added CHANGELOG...
- Added CHANGELOG - Bumped version to 1.1 - Added PythonQtObjectPtr conversion ctor and operator=(const QVariant&) - added examples/CPPPyWrapperExample git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@37 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r0:2978a919fc4e
r2:b0bd6d44c879
Show More
example.py
28 lines | 569 B | text/x-python | PythonLexer
from PythonQt import *
# call our new constructor of QSize
size = QSize(QPoint(1,2));
# call our new QPushButton constructor
button = QPushButton("sometext");
# call the move slot (overload1)
button.move(QPoint(0,0))
# call the move slot (overload2)
button.move(0,0)
# call the static method
print QWidget.mouseGrabber();
# create a CPP object via constructor
yourCpp = YourCPPObject(2,11.5)
# call the wrapped method on CPP object
print yourCpp.doSomething(3);
# show slots available on yourCpp
print dir(yourCpp)
# destructor will be called:
yourCpp = None