Bug #1890 Opencv 2.4.0 with QT 4.7.4 and cvcreatebutton exception fixed.

QVector range check exception fixed.
Merge pull request #1459 from asmorkalov:ocv_qt_segflt_fix