[Qt-interest] QUiLoader's method "load" used in custom widget results in "Segmentation fault" in Linguist

Jordan Tcolov mazzzterz at gmail.com
Fri Jul 15 14:28:54 CEST 2011


If someone confirmed the problem exists please write to be sure that it's
not just me.


On Thu, Jul 14, 2011 at 10:43, Jordan Tcolov <mazzzterz at gmail.com> wrote:

> QUiLoader's method "load" used in custom widget results in "Segmentation
> fault" in Linguist
>
> Hi !
> I'm writing an interface program and it came time to internationalize it,
> so I started reading the Qt Documentation. I was happy to see that all forms
> loaded by QUiLoader are automatically translated, but I stumbled on a
> problem. Almost the whole interface consists of custom widgets that are put
> in the forms from designer. Some of the custom widgets use their own forms
> that they load using QUiLoader class and here the problem appeared. When I
> start Linguist and choose a translation that is located on a form that uses
> some of my custom widgets the program ends with "Segmentation Fault". I put
> a lot of prints to see where Linguist dies and I fount that when I invoke
> the method "load" from class QUiLoader with valid ui file the application
> dies. If the file isn't valid it doesn't die. I'm not sure if this is a bug
> or not so I'm posting it here.
>
> I made a simple example showing the problem.
> "Download it":http://www.filefactory.com/file/cc52b9f/n/DEMO4_zip
>
> P.P. I forgot to mention that I use Qt 4.7.0 because it comes with SDK that
> is compiled with the same version. I tried using the new one but in my
> custom widgets I use things like SQL and OpenGL and some more and designer
> complains that cannot mix 4.7.1/4.7.2/4.7.3 with 4.7.4. I can workaroung the
> problem with the enviroment variable LD_PRELOAD but it I don't like this
> solution.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110715/61e76bf3/attachment.html 


More information about the Qt-interest-old mailing list