Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Incomprehensible background qml ApplicationWindow
Qt 6.11 is out! See what's new in the release blog

Incomprehensible background qml ApplicationWindow

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sergboec
    wrote on last edited by
    #1

    This screenshot comlitely illustrated my problem:
    !http://cs409020.vk.me/v409020604/772d/r9JOkdObjj4.jpg(Link to dropbox image)!
    Why such a gradient background?
    Qt 5.2.1 -Debug MSVC 2012 x32 - Windows 7 x64
    Code:
    @
    import QtQuick 2.0
    import QtQuick.Controls 1.1
    import QtQuick.Layouts 1.1

    ApplicationWindow{
    id: root
    width:640
    height: 480
    visible: true
    title: "translate helper"

    ProgressBar {
        id: progress
        height: 10
        anchors.bottom: parent.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottomMargin: 2
    }
    
    ColumnLayout {
        id: leftLayout
        width: parent.width/2
        anchors.bottom: progress.top
        anchors.bottomMargin: 5
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 5
        Text { text: "Three" }
        Text { text: "words" }
        Text { text: "in" }
        Text { text: "a" }
        Text { text: "row" }
    }
    
    ColumnLayout {
        id: rigthLayout
        anchors.left: leftLayout.right
        anchors.leftMargin: 5
        anchors.right: parent.right
        anchors.rightMargin: 5
        anchors.bottom: progress.top
        anchors.bottomMargin: 5
        anchors.top: parent.top
        anchors.topMargin: 5
        Text { text: "Three" }
        Text { text: "words" }
        Text { text: "in" }
        Text { text: "a" }
        Text { text: "row" }
    }
    

    }
    @

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sergboec
      wrote on last edited by
      #2

      can't locate problem but that code is fine
      @
      ApplicationWindow{
      id: mainWindow
      width:640
      height: 480
      visible: true
      title: "Srt translate helper"

      ProgressBar {
          id: progress
          height: 15
          anchors.bottom: parent.bottom
          anchors.left: parent.left
          anchors.right: parent.right
          anchors.bottomMargin: 2
      }
      
      ColumnLayout {
          id: leftLayout
          width: parent.width/2
          anchors.bottom: progress.top
          anchors.bottomMargin: 5
          anchors.top: parent.top
          anchors.topMargin: 5
          anchors.left: parent.left
          anchors.leftMargin: 5
          Text { text: "Three" }
          Text { text: "words" }
          Text { text: "in" }
          Text { text: "a" }
          Text { text: "row" }
      }
      
      ColumnLayout {
          id: rigthLayout
          anchors.left: leftLayout.right
          anchors.leftMargin: 5
          anchors.right: parent.right
          anchors.rightMargin: 5
          anchors.bottom: progress.top
          anchors.bottomMargin: 5
          anchors.top: parent.top
          anchors.topMargin: 5
          Text { text: "Three" }
          Text { text: "words" }
          Text { text: "in" }
          Text { text: "a" }
          Text { text: "row" }
      }
      

      }

      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved