FTR on my macOS machine with Qt 5.7.0 it doesn’t crash. What Qt version do you use? QApplication::UnicodeUTF8 is unknown as well as the translate() overload that your code uses.
Beste Grüße / Best regards, Alexander Nassian, bitshift dynamics GmbH > Am 29.09.2016 um 22:08 schrieb Kotanski, Jan <[email protected]>: > > Hi, > > I've noticed that too long test in qlabel e.g. > > void retranslateUi(QDialog *Dialog) > { > Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, > QApplication::UnicodeUTF8)); > char str[2000]; > for(int i=0; i<1999;i++) > str[i] = 'a'; > str[1999]='\0'; > label->setText(QApplication::translate("Dialog", str, 0, > QApplication::UnicodeUTF8)); > } // retranslateUi > > crashed my gdm (for gnome 3). > > Is it a known problem? How to fix it? > > More info on: > > https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038145.html > > Bests, > Jan > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
