When a RowLayout is nested inside a ColumnLayout, alignment for items in the RowLayout doesn't work:

Знімок екрана 2017-03-02 17.08.57.jpg

Qt Code:
  1. import QtQuick 2.7
  2. import QtQuick.Controls 2.0
  3. import QtQuick.Layouts 1.0
  4.  
  5. ApplicationWindow {
  6. visible: true
  7. width: 640
  8. height: 480
  9. title: qsTr("Hello World")
  10.  
  11. ColumnLayout
  12. {
  13. anchors.fill: parent
  14. anchors.margins: 20
  15.  
  16. Label { text: qsTr("Alignment works properly"); color: "green"; Layout.alignment: Qt.AlignRight }
  17.  
  18. RowLayout
  19. {
  20. //Layout.alignment: Qt.AlignJustify
  21. //Layout.fillWidth: true
  22. Label { text: "Left"; color: "blue"; Layout.alignment: Qt.AlignLeft }
  23. Label { text: "Right (doesn't work)"; color: "red"; Layout.alignment: Qt.AlignRight }
  24. //Rectangle { color: "red"; height: 50; Layout.fillWidth: true }
  25. //Rectangle { color: "red"; height: 50; width: 50; Layout.alignment: Qt.AlignRight }
  26. } // RowLayout
  27. } // ColumnLayout
  28.  
  29. footer: RowLayout { Label { text: "Here it works too"; Layout.alignment: Qt.AlignRight } }
  30. }
To copy to clipboard, switch view to plain text mode 

Is there any way to make it work?