A: 

In the applyStyleToTopLevel function, you are using the widget pointers without verifying it's a valid pointer. So when doing widget->style with a NULL widget pointer it will crash.

Patrice Bernassola
Yes, I know that, the problem is that the function applyStyleToTopLevel is not mine, it's the Qt Designer source code. My question is, what in my code has triggered such error ??
chedi
A: 

Just for information I just compiled the same code under the Qt version 4.5.3-9 and it worked just fine with the 4.5 designer. may be it's a Qt 4.6 bug...

chedi