Solved Button bug. Why the button width is truncated.
-
Please look at the following simple code snippet given for example. It is a part of a larger project.
import QtQuick import QtQuick.Controls import QtQuick.Layouts Window{ visible: true width: 300 height: 300 RowLayout{ Button{ id: create text: "Создать" } Button{ id: cancel text: "Отменить" } } }
I run the project and get the buttons bug
I can't imagine why the buttons are displayed this way. At the same time this code in a clean environment(a new project having nothing except the snippet) produces the expected result.
-
Thanks all. I have just played with the buttons and reverted changes. I don't know where was the problem
Button{ Layout.minimumWidth: availableWidth id: create text: "Создать" }