It works now, thanks for that fix![]()
I just suffered using windows again long enough to check this still compiles on MSVC6. There were just two changes needed.
qeditor.cpp line 1120, do not return a value, its a void function.
Similarly 1685.
Hi Fullmetalcoder, I am having trouble refreshing the content of the editor. I did this
Qt Code:
pEditor->load(qsFileName);To copy to clipboard, switch view to plain text mode
and it causes a crash.
The call stack shows
- QEditor::load,
- QEditor::setText,
- QDocument::setText,
- qDeleteAll,
- qDeleteAll,
- QDocumentLineHandle::~QDocumentLineHandle,
- QDocumentPrivate::emitLineDeleted,
- QHash<Key, T>::remove,
- QHash<Key, T>::detach,
- QHash<Key, T>::detach_helper
If I am going about this the right way, hopefully you can bind some event in one of your programs to these two lines and reproduce the crash. If it doesn't just fall out and you need a test case, let me know.
Bookmarks