diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index ae23093e56bbd562417dd292286af78c6252964a..46f55daf14ffdd094a7e43074222a19e1ba325dd 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -78,6 +78,7 @@ FocusScope {
                 PropertyChanges {
                     target: textField
                     text: ""
+                    width: 0.0
                 }
 
                 PropertyChanges {