Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. stackView.currentItem.data[0].objectName always null in Qt5.6.3
Forum Updated to NodeBB v4.3 + New Features

stackView.currentItem.data[0].objectName always null in Qt5.6.3

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 414 Views 2 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.
  • LinArcXL Offline
    LinArcXL Offline
    LinArcX
    wrote on last edited by
    #1

    Hi
    I'm using objectName property to find the name of loaded items in stackview.

    Everything is fine in Qt 5.14.2. But this property is always null in 5.6.3. Why?

    Pl45m4P 1 Reply Last reply
    0
    • LinArcXL LinArcX

      Is there any other way to access name of pages in 5.6.3?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #5

      @LinArcX

      StackView should not work with 5.6.3. Therefore you can not access the objectName properly.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      1
      • LinArcXL LinArcX

        Hi
        I'm using objectName property to find the name of loaded items in stackview.

        Everything is fine in Qt 5.14.2. But this property is always null in 5.6.3. Why?

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #2

        @LinArcX said in stackView.currentItem.data[0].objectName always null in Qt5.6.3:

        But this property is always null in 5.6.3. Why

        Are you sure, that your code works at all?!

        According to this (https://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html), StackView should not be in 5.6.3 since it was introduced in 5.7 first.


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        LinArcXL 1 Reply Last reply
        2
        • Pl45m4P Pl45m4

          @LinArcX said in stackView.currentItem.data[0].objectName always null in Qt5.6.3:

          But this property is always null in 5.6.3. Why

          Are you sure, that your code works at all?!

          According to this (https://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html), StackView should not be in 5.6.3 since it was introduced in 5.7 first.

          LinArcXL Offline
          LinArcXL Offline
          LinArcX
          wrote on last edited by
          #3

          @Pl45m4 said in stackView.currentItem.data[0].objectName always null in Qt5.6.3:

          Why

          Yes, my code compiled and worked very well.

          1 Reply Last reply
          0
          • LinArcXL Offline
            LinArcXL Offline
            LinArcX
            wrote on last edited by
            #4

            Is there any other way to access name of pages in 5.6.3?

            Pl45m4P 1 Reply Last reply
            0
            • LinArcXL LinArcX

              Is there any other way to access name of pages in 5.6.3?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #5

              @LinArcX

              StackView should not work with 5.6.3. Therefore you can not access the objectName properly.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              1

              • Login

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