On Thu, Sep 29, 2016 at 10:08:05PM +0200, Kotanski, Jan wrote:
> 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?

That's something to ask the gdm folks. 2000 bytes in a QLabel might be unusual,
but no reason to crash. Here (fvwm 2.6.5 on Ubuntu 16.04) it displays fine.

Andre'
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to