border-radius
should be bigger then border-width
at least 4-5 px. Try following:
this->setStyleSheet(" QLineEdit { "
" border-radius: 8px; "
" color:rgb(0, 0, 0); "
" background-color: rgb(255, 255, 255); } "
" QLineEdit:focus { "
" border:4px outset; "
" border-radius: 8px; "
" border-color: rgb(41, 237, 215); "
" color:rgb(0, 0, 0); "
" background-color: rgb(150, 150, 150); } "
);
Looks like: