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. Row component: Invalid property name "leftPadding"
Forum Update on Monday, May 27th 2025

Row component: Invalid property name "leftPadding"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 938 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.
  • D Offline
    D Offline
    Developer123
    wrote on 29 Mar 2022, 14:06 last edited by Developer123
    #1

    The documentation clearly states Row has a leftPadding for QT 5.6+.
    https://doc.qt.io/qt-5/qml-qtquick-row.html#leftPadding-prop

    My PySide2 is version '5.15.2'.

    However I get this problem:

    Screenshot_1.png

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GrecKo
      Qt Champions 2018
      wrote on 29 Mar 2022, 14:46 last edited by
      #4

      Which Qt Quick version are you importing in your QML file?

      My guess is that you should replace import QtQuick 2.0 by import QtQuick 2.15.

      1 Reply Last reply
      3
      • D Offline
        D Offline
        dheerendra
        Qt Champions 2022
        wrote on 29 Mar 2022, 14:28 last edited by dheerendra
        #2

        May be trivial qn. It should work. Seen it working as well. Did you run the program & see if this padding is working ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        D 1 Reply Last reply 29 Mar 2022, 14:29
        0
        • D dheerendra
          29 Mar 2022, 14:28

          May be trivial qn. It should work. Seen it working as well. Did you run the program & see if this padding is working ?

          D Offline
          D Offline
          Developer123
          wrote on 29 Mar 2022, 14:29 last edited by
          #3

          @dheerendra doesn't work, I get weird output, the component doesn't load at all. Everything else bugs

          1 Reply Last reply
          0
          • G Offline
            G Offline
            GrecKo
            Qt Champions 2018
            wrote on 29 Mar 2022, 14:46 last edited by
            #4

            Which Qt Quick version are you importing in your QML file?

            My guess is that you should replace import QtQuick 2.0 by import QtQuick 2.15.

            1 Reply Last reply
            3

            1/4

            29 Mar 2022, 14:06

            • Login

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