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. objectname does not get updated from .ui to .py file
Qt 6.11 is out! See what's new in the release blog

objectname does not get updated from .ui to .py file

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 328 Views 1 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.
  • E Offline
    E Offline
    ehshan
    wrote on last edited by
    #1

    I have created a UI wherein I have a stackedwidget, and in that stackwidget I have 12 different pages. I have changed the objectname in the designer file. When I convert the designer file(.ui file) to a python file, the objectname is not updated—for example, pushbutton, pushbutton1, and so on.

    JonBJ 1 Reply Last reply
    0
    • E ehshan

      I have created a UI wherein I have a stackedwidget, and in that stackwidget I have 12 different pages. I have changed the objectname in the designer file. When I convert the designer file(.ui file) to a python file, the objectname is not updated—for example, pushbutton, pushbutton1, and so on.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @ehshan
      What version of Qt, and more to the point which of PyQt/PySide do you use?
      Show a small example (not the whole thing!) of where you have specified the object name in the .ui file, what the variable gets named in the .py file, and how you processed the .ui to make the .py.

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

        Hi and welcome to devnet,

        Beside the request of @JonB, are you talking about the objectName property ? If so, it does not have any influence on the generated variable name.

        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
        1

        • Login

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