How can I hide the handle of the QSplitter?

And

How to change its appearance to a line, like splitters in Qt Creator? QSplitter::setHandleWidth(1) doesn't have the effect.