Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. Issue with Build Button Functionality in Qt Window HoudiniFx
QtWS25 Last Chance

Issue with Build Button Functionality in Qt Window HoudiniFx

Scheduled Pinned Locked Moved Unsolved India
6 Posts 2 Posters 268 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.
  • M Offline
    M Offline
    Mahesh108
    wrote on 15 Jan 2025, 06:07 last edited by Mahesh108
    #1

    I’m new to Qt and facing an issue while writing in PySide2 for Houdini UI.. I’ve written a script in Houdini that creates a window with two buttons: Build and Close.

    Clicking the Build button opens another window with the same two buttons (Build and Close).
    The Build button works fine the first time, opening the new window. However, subsequent clicks on the Build button don’t seem to work at all.
    Additionally, each click on the Build button is counted, and when the Close button is clicked, it prints the total number of clicks. This behavior happens regardless of whether you close the window from the main or subsequent windows.
    Could someone please explain why the Build button stops functioning after the first click? I’d appreciate any help or guidance!
    https://github.com/MaheshFXTD/shotbuilder

    Thank you!

    J 1 Reply Last reply 15 Jan 2025, 06:11
    0
    • M Mahesh108
      15 Jan 2025, 06:07

      I’m new to Qt and facing an issue while writing in PySide2 for Houdini UI.. I’ve written a script in Houdini that creates a window with two buttons: Build and Close.

      Clicking the Build button opens another window with the same two buttons (Build and Close).
      The Build button works fine the first time, opening the new window. However, subsequent clicks on the Build button don’t seem to work at all.
      Additionally, each click on the Build button is counted, and when the Close button is clicked, it prints the total number of clicks. This behavior happens regardless of whether you close the window from the main or subsequent windows.
      Could someone please explain why the Build button stops functioning after the first click? I’d appreciate any help or guidance!
      https://github.com/MaheshFXTD/shotbuilder

      Thank you!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 15 Jan 2025, 06:11 last edited by
      #2

      @Mahesh108 Your link doesn't work.
      Did you verify that the slot connected to the build button is called?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mahesh108
        wrote on 15 Jan 2025, 06:35 last edited by
        #3

        @jsulm Thanks for replying, Yes build button is connected to the slot.
        This code I am writing in HoudiniFx software, seems like there are some rules which I am not aware about.
        But this code works well in Python3.1 in windows machine.
        The link is marked to private now.
        main.py script is for HoudiniFx
        windows_main.py is for python3.1

        J 1 Reply Last reply 15 Jan 2025, 06:39
        0
        • M Mahesh108
          15 Jan 2025, 06:35

          @jsulm Thanks for replying, Yes build button is connected to the slot.
          This code I am writing in HoudiniFx software, seems like there are some rules which I am not aware about.
          But this code works well in Python3.1 in windows machine.
          The link is marked to private now.
          main.py script is for HoudiniFx
          windows_main.py is for python3.1

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 15 Jan 2025, 06:39 last edited by
          #4

          @Mahesh108 said in Issue with Build Button Functionality in Qt Window HoudiniFx:

          Yes build button is connected to the slot

          This does not answer my question.
          Again: is the slot connected to the button called when you click it?

          "But this code works well in Python3.1 in windows machine" - and where does it not work?
          You will provide more information if you want to get better support.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mahesh108
            wrote on 15 Jan 2025, 07:08 last edited by
            #5

            There is a CG software HoudiniFx, which supports PySide2 and I am writing code for that.
            This is site for HoudiniFx.
            https://www.sidefx.com/
            Documentation for PySide2 in Houdini.
            https://www.sidefx.com/docs/houdini/hom/cb/qt.html

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mahesh108
              wrote on 16 Jan 2025, 04:08 last edited by
              #6

              So If I simplify the issue even more, when I close the window by using self.close or self.reject in the buttons. self.button.clicked.connect(self.close) like this. Or If I directly close the window, it is printing 'found files' from collect_files function.
              I also tried defining closeEvent function to close the window but before closing every time it's printing the found files first.
              Any suggestion which could explain what is causing this behavior will help me investigate effectively. Thanks

              1 Reply Last reply
              0

              3/6

              15 Jan 2025, 06:35

              • Login

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