View Issue Details

IDProjectCategoryView StatusLast Update
0011342ScribusScripterpublic2013-01-06 20:50
Reporterale Assigned To 
Status newResolutionopen 
Product Version1.5.0svn 
Summary0011342: Scripter2: newDocument does not work
DescriptionScripter: newDocument does not work
TagsNo tags attached.



2013-01-06 19:12

administrator   ~0029617

It seems scripter2 newDocument() function requires more argument than Qt signal/slot mecanism can handle. QMetaObject::invoke() can call functions with at most 9 arguments. newDocument() has already 13 arguments.


2013-01-06 20:50

manager   ~0029618

found the solution while driving home: newDocument is not (really) a function. it should be called as Scripter.dialogs.newDocument, without the ().
at least, this works, if what you want is the "new document" dialog.
but we would also need a way to create a new document, without showing the dialog. and without specifying all those parameters in advance (if there is indeed such a function with 13 parameters!)

Issue History

Date Modified Username Field Change
2013-01-06 17:42 ale New Issue
2013-01-06 19:12 jghali Note Added: 0029617
2013-01-06 19:12 jghali Summary Scripter: createDocument does not work => Scripter: newDocument does not work
2013-01-06 19:12 jghali Description Updated
2013-01-06 19:29 jghali Summary Scripter: newDocument does not work => Scripter2: newDocument does not work
2013-01-06 20:50 ale Note Added: 0029618