Registered Member
|
hi, I'm using kword as kpart, the part is loaded and shown when I open a .fodt so it works( situation 1). But now I wanted to get kword to show a QByteArray content. This QByteArray is a previous saved kword document. Debugging shows that the QByteArray contains data but the kword part is not shown ( you get the same when you don't supply a .fodt in situation 1). I guess the problem lies in the loadReportFromDB.
This is my code: report.cpp
and in KWDocument.cpp
Last edited by xyfix on Thu Sep 30, 2010 6:52 am, edited 1 time in total.
|
Registered Member
|
I guess I need to do something extra after the loadNativeFormatFromStore routine in order to get the kpart to be shown, anyone?
Last edited by xyfix on Thu Sep 30, 2010 6:53 am, edited 1 time in total.
|
Registered Member
|
I added these functions in my code but I get a segmentation fault in KWDocument.cpp in function endOfLoading()
KWDocument.cpp:
added code in reporteditor.cpp:
kwdocument.cpp:
|
Registered Member
|
I've tried to create a odfReadStore with the KoStore (createStore(...)) and then do a loadAndParse(..) but that didn't seem to help, it doesn't crash but nothing is shown in my app not even the kpart/kword.
|
Registered Member
|
I changed the code to the previous one and I can see that the file is created in the /tmp directory but when I want to open the file like in the test I get an error in the KParts::ReadWritePart::openUrl(). But when I open the file on a second attempt via an other routine the kword/kpart gets loaded and it shows my file.
Why not the first time with the code below ??
|
Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]