it worked just fine! this functions is even better in qt4 than in qt3, where i needed triple click to enable text edit... Thanks!