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. QSGClipNode doesn`t clip any child item from qml built-in items like Rectangle
Forum Updated to NodeBB v4.3 + New Features

QSGClipNode doesn`t clip any child item from qml built-in items like Rectangle

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 398 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.
  • Esmaeil_SooanE Offline
    Esmaeil_SooanE Offline
    Esmaeil_Sooan
    wrote on last edited by Esmaeil_Sooan
    #1

    Hi
    I am newbie Qt developer and I dont know how exactly QtQuick scene graph works. my question is that I created a node tree for rendering and I have my custom geometry node with custom fragment and vertex shader. when a QSGClipNode used in this node tree this will clip node tree items and has no any affect on child items that added on QML.
    consider:
    CustomItem{ width:100; height:100; Rectangle{ width:200 height:200 } }
    and in this example by QSGClipNode expected Rectangle be clipped but is not. Why?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      While I think I get what your issue is, I think it would be better if you'd provide a minimal compilable example that shows what it happening.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Esmaeil_SooanE Offline
        Esmaeil_SooanE Offline
        Esmaeil_Sooan
        wrote on last edited by Esmaeil_Sooan
        #3

        Hi,

        sure here is my example code.

        https://github.com/neji78/QSGClipNodeExample.git

        thank you @SGaist

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which version of Qt are you using ?
          Your code does not build with Qt 6.7.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Esmaeil_SooanE 1 Reply Last reply
          0
          • SGaistS SGaist

            Which version of Qt are you using ?
            Your code does not build with Qt 6.7.

            Esmaeil_SooanE Offline
            Esmaeil_SooanE Offline
            Esmaeil_Sooan
            wrote on last edited by
            #5

            @SGaist
            Qt5.15.2

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Would it be possible to have a picture of what you are getting and what you are expecting to get ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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