PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 884 - declaration error with QSqldatabase
: declaration error with QSqldatabase
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: Shiboken
: 1.0.3
: PC Linux
: P4 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-14 23:12 EEST by rocher.jm
Modified: 2011-08-23 00:37 EEST (History)
8 users (show)

See Also:


Attachments
source file of my binding (1.27 KB, application/x-bzip2)
2011-06-15 21:54 EEST, rocher.jm
Details
make file for binding (1.56 KB, application/octet-stream)
2011-06-20 23:34 EEST, rocher.jm
Details
new makefile (7.30 KB, application/octet-stream)
2011-08-05 21:53 EEST, renato filho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rocher.jm 2011-06-14 23:12:42 EEST
I try to bind a class using QSqlDatabase data input, but when the
Foo_wrapper.cpp and Foo_module_wrapper.cpp are compiled, the compiler send the
following errors:

/usr/include/PySide/QtSql/pyside_qtsql_python.h:139: error:
‘::QSqlRelationalDelegate’ has not been declared
/usr/include/PySide/QtSql/pyside_qtsql_python.h:139: error: template-id
‘SbkType<<expression error> >’ for ‘PyTypeObject* Shiboken::SbkType()’ does not
match any template declaration

no "QSqlRelationalDelegate" function is used in the Class I try to bind

thanks a lot for your help
Comment 1 Hugo Parente Lima 2011-06-15 21:30:23 EEST
Could you elaborate a bit more your explanation?

What are you trying to do? Bind some classes that uses QSqlDatabase?

Could you attach the generated source files in a tar ball?
Comment 2 rocher.jm 2011-06-15 21:54:04 EEST
Created attachment 346 [details]
source file of my binding

sorry I thought I had join the source file to my message
The bindind is made with 2 functions the first one is in the Class, and is
dedicated to link a regexp function (the second one) to an sqlite driver.
It's the reason why this first function take a QSqldatabase data as an input
parameter.

before binding the function I test it in a short application and it run fine
Comment 3 Hugo Parente Lima 2011-06-20 20:40:02 EEST
What are you using to build the bindings? I mean... I need the cmake scripts to
check what's going wrong.
Comment 4 rocher.jm 2011-06-20 23:34:24 EEST
Created attachment 352 [details]
make file for binding

hello,
you can find attached the make file I used to generate the binding.

Prior to used this make file I compiled the setRegexp.cpp file with Qt Creator
in order to generate the libsetRegexp.so file
the directory strusture is the following:

projectRoot
   |
   setRegexp
   |   |-setRegexp.cpp
   |   [-setRegexp.h
   |   |-setRegexp.pro
   |
   setRegexpPy
       |-global.h
       |-typesystem.xml
       |-Makefile

thanks for your help
Comment 5 renato filho 2011-08-05 21:53:24 EEST
Created attachment 388 [details]
new makefile
Comment 6 renato filho 2011-08-05 21:55:58 EEST
The module QtSql was compiled with GUI support on PySide, because of that you
need use some Qt specifics flags.


I have updated your Makefile for work with current PySide compilation. You can
check that and fell free to ask questions.


Thanks
Comment 7 renato filho 2011-08-23 00:37:16 EEST
Release PySide 1.0.6