PDA

View Full Version : QUndoStack::index() crashed because of segmentation fault



learning_qt
24th January 2011, 11:56
My application uses QUndoStack
By QUndoStack stack = new QUndoStack().

Then I try to access the function QUndoStack::index() by using

stack->index();

Sometimes, my application crashes at:

QUndoStack::index () at util/qundostack.cpp:713

What is the reason causing the segmentation fault?

wysota
24th January 2011, 18:45
Please provide a minimal compilable example reproducing the problem.