The cursor gets the position -1, when no match is found in the text. Unfortunately, the text isn't editable anymore after the closing of the findwidget, if the cursor has position -1.
Now my aim is, that I want to set the cursor to the start of the text, if no match is found and the widget is closed.