You know that everywhere you need a QString object as a parameter you can use just c style strings . For example showMessage
function needs QString. But I passed a C-style string to this function and every thing is OK. I mean here we can think of "%1 a sample text"
as a QString object! maybe!
statusBar()->showMessage("%1 a sample text");
But why can't we use this code:
statusBar()->showMessage("%1 a sample text".arg("This is "));