Quote Originally Posted by prashant.patel View Post
Hey as tr() function returns the QString. It's passing it to function SetMenuButton, it accepts string as char* so it is giving error of cannot convert from QString to char*.
It pays to put all the necessary information into your initial question. Stampede answered the question you actually asked. There was no way we could have gleaned your real question from your initial post. Even posting the compiler error message and a few lines before it would have helped. You might get the answer to the real question with an "It doesn't work" post but it will take longer.