don't show the placeholder when text is not empty

This commit is contained in:
Uwe Rathmann 2024-12-09 10:04:33 +01:00
parent b6f2003826
commit 4ad28e6076

View File

@ -61,8 +61,13 @@ QSGNode* QskTextFieldSkinlet::updateSubNode(
}
case PlaceholderTextRole:
{
return updateTextNode( skinnable, node,
textField->placeholderText(), Q::PlaceholderText );
if ( textField->text().isEmpty() )
{
return updateTextNode( skinnable, node,
textField->placeholderText(), Q::PlaceholderText );
}
return nullptr;
}
}