PDA

View Full Version : Copying from QPlainTextEdit Results in SIGSEGV



splinterz
29th November 2013, 13:19
just the widget on a form. pasting into it is ok, copying results in the error below, and clears the clipboard. Qt 5.1.1. anyone have any ideas what the problem is?

http://i.imgur.com/bsPmYLi.jpg

folibis
30th November 2013, 08:42
Show you code, when you get the text

splinterz
30th November 2013, 10:14
Show you code, when you get the text

There's no code of mine running when this happens; it's on ctrl-c to copy the selected text.

saman_artorious
30th November 2013, 10:25
There's no code of mine running when this happens; it's on ctrl-c to copy the selected text.

I don't think your problem has anything to do with Qt. Try to build a new project and see the behavior of QPlainTextEdit.
You may also run the project in debug mode to give us more information.

splinterz
30th November 2013, 10:26
That image is from debug mode...

anda_skoa
30th November 2013, 11:19
Maybe some library mismatch, e.g. the ICU library used by the program not being the one Qt was compiled against.

Cheers,
_

splinterz
30th November 2013, 11:42
Maybe some library mismatch, e.g. the ICU library used by the program not being the one Qt was compiled against.

Cheers,
_

that sounds promising, how do i check for such a mismatch?

i tried creating a new project as recommended, and the textedit works as expected, so i guess there's something wrong/broken with the other project.