Thanks! IT WORKS! Now it is nice that this works from code, but is there any way in the UI designer to do this? (I mean the UI designer of Qt Creator for Windows. I use MADDE.)