Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Qt Creator randomly won't update .py file with changes from .ui file

Qt Creator randomly won't update .py file with changes from .ui file

Scheduled Pinned Locked Moved Unsolved Qt for Python
pyside
2 Posts 2 Posters 146 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.
  • B Offline
    B Offline
    BGrimaud
    wrote on 19 Feb 2025, 18:06 last edited by
    #1

    I'm using Qt Creator 11.0.2 with Qt 6.4.3 to develop an app using PySide 6 and Python 3.12.

    Whenever I make UI changes to mainwindow.ui with Qt Creator, I click the "Build" button with the hammer icon, after which the ui_mainwindow.py file is updated. I can then interact with new or updated widgets from main.py.

    However, the .py file sometimes refuses to change. I can click the "Build" button as much as I want, clean up, start again, restart the app, the file simply won't update. After a while, or through some other factor I cannot identify, the file will finally update and I can carry on.

    Any idea of what could be the issue ?

    J 1 Reply Last reply 19 Feb 2025, 18:38
    0
    • B BGrimaud
      19 Feb 2025, 18:06

      I'm using Qt Creator 11.0.2 with Qt 6.4.3 to develop an app using PySide 6 and Python 3.12.

      Whenever I make UI changes to mainwindow.ui with Qt Creator, I click the "Build" button with the hammer icon, after which the ui_mainwindow.py file is updated. I can then interact with new or updated widgets from main.py.

      However, the .py file sometimes refuses to change. I can click the "Build" button as much as I want, clean up, start again, restart the app, the file simply won't update. After a while, or through some other factor I cannot identify, the file will finally update and I can carry on.

      Any idea of what could be the issue ?

      J Offline
      J Offline
      JonB
      wrote on 19 Feb 2025, 18:38 last edited by
      #2

      @BGrimaud
      If you delete the ui_...py file and resave does that recreate it, and reflect new changes?
      Do you have the option to try a newer version of Creator?

      1 Reply Last reply
      0

      2/2

      19 Feb 2025, 18:38

      • Login

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