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. RowLayout is not a type
Forum Updated to NodeBB v4.3 + New Features

RowLayout is not a type

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 1.6k Views
  • 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.
  • W Offline
    W Offline
    white
    wrote on last edited by
    #1

    This issue is similar with the one that I have asked before, but in fact, it is not completely same.
    I have made one simple code using QML (5.14.2), when I compile the code ,it give error : "qrc:/main.qml:28:17: RowLayout is not a type"

    I really not know what the really reason for this one because I have already import the "QtQuick.Controls 1.4" .

    I guess it may case the mix using control 1 and control 2 together. Hope to get get some help for :

    1. how to fix this issue and what is the reason for this error ?
    2. is there some of specification or conduct for using version of qml control ? (something like that)

    The code I am using is :

    import QtQuick 2.12

    import QtQuick.Controls 1.4

    ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Scroll")

    Item {
        id: inforWindow
        anchors.fill: parent
    
        TableView {
            id: inforWindowView
            anchors.fill: parent.anchors.fill
    
            Tab {
                id: inforWindowViewTab
    
                title : "123-case"
    
                Text {
                    id: inforWindowViewTabText
                    text: qsTr("text")
                }
    
                RowLayout {   //here is the error reported.
                    spacing: 6
                    anchors.fill: parent
                    Button {
                        id: caseInforEnterBtn
                        anchors.bottom: parent.bottom
                        anchors.right: parent.right
    
                        width: 50
    
                        text: qsTr("Enter")
                    }
    
                    ComboBox {
                        anchors.left: parent.left
                        anchors.right: caseInforEnterBtn.left
                        anchors.verticalCenter: caseInforEnterBtn.verticalCenter
                    }
    
                }
            }
            Tab {
                title: qsTr("general")
            }
        }
    }
    

    }

    eyllanescE 1 Reply Last reply
    0
    • W white

      This issue is similar with the one that I have asked before, but in fact, it is not completely same.
      I have made one simple code using QML (5.14.2), when I compile the code ,it give error : "qrc:/main.qml:28:17: RowLayout is not a type"

      I really not know what the really reason for this one because I have already import the "QtQuick.Controls 1.4" .

      I guess it may case the mix using control 1 and control 2 together. Hope to get get some help for :

      1. how to fix this issue and what is the reason for this error ?
      2. is there some of specification or conduct for using version of qml control ? (something like that)

      The code I am using is :

      import QtQuick 2.12

      import QtQuick.Controls 1.4

      ApplicationWindow {
      visible: true
      width: 640
      height: 480
      title: qsTr("Scroll")

      Item {
          id: inforWindow
          anchors.fill: parent
      
          TableView {
              id: inforWindowView
              anchors.fill: parent.anchors.fill
      
              Tab {
                  id: inforWindowViewTab
      
                  title : "123-case"
      
                  Text {
                      id: inforWindowViewTabText
                      text: qsTr("text")
                  }
      
                  RowLayout {   //here is the error reported.
                      spacing: 6
                      anchors.fill: parent
                      Button {
                          id: caseInforEnterBtn
                          anchors.bottom: parent.bottom
                          anchors.right: parent.right
      
                          width: 50
      
                          text: qsTr("Enter")
                      }
      
                      ComboBox {
                          anchors.left: parent.left
                          anchors.right: caseInforEnterBtn.left
                          anchors.verticalCenter: caseInforEnterBtn.verticalCenter
                      }
      
                  }
              }
              Tab {
                  title: qsTr("general")
              }
          }
      }
      

      }

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by eyllanesc
      #2

      @white The documentation is very clear:

      Screenshot_20210903_223117.png

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      RokeJulianLockhartR 1 Reply Last reply
      1
      • W Offline
        W Offline
        white
        wrote on last edited by
        #3

        Thanks for your .
        Yes, I miss it.

        1 Reply Last reply
        0
        • eyllanescE eyllanesc

          @white The documentation is very clear:

          Screenshot_20210903_223117.png

          RokeJulianLockhartR Offline
          RokeJulianLockhartR Offline
          RokeJulianLockhart
          wrote on last edited by RokeJulianLockhart
          #4
          This post is deleted!
          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