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. cant delete unused properties from ui_ prefixed headers
Forum Updated to NodeBB v4.3 + New Features

cant delete unused properties from ui_ prefixed headers

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

    hi!

    i was creating my mainwindow with the typical top menu (file, edit, etc) its name is wmainwindow.h.
    Qt uses a hidden ui prefixed file in this case ui_wmainwindow.h, problem is i have changed some names to first menu and on the second menu i tried to write the first menu name, but older names still remains on ui header, so when i try to put open_file, it puts open_file_2 and can't change it back, tryied to edit ui header but it resets next compiling time...

    any suggestion?
    thanks

    JKSHJ jsulmJ 2 Replies Last reply
    0
    • U U7Development

      hi!

      i was creating my mainwindow with the typical top menu (file, edit, etc) its name is wmainwindow.h.
      Qt uses a hidden ui prefixed file in this case ui_wmainwindow.h, problem is i have changed some names to first menu and on the second menu i tried to write the first menu name, but older names still remains on ui header, so when i try to put open_file, it puts open_file_2 and can't change it back, tryied to edit ui header but it resets next compiling time...

      any suggestion?
      thanks

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      @U7Development said in cant delete unused properties from ui_ prefixed headers:

      tryied to edit ui header but it resets next compiling time

      1. Edit the name in Qt Designer.
      2. Save all your files.
      3. Compile again.

      You cannot edit the ui_*.h header directly.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2
      • U U7Development

        hi!

        i was creating my mainwindow with the typical top menu (file, edit, etc) its name is wmainwindow.h.
        Qt uses a hidden ui prefixed file in this case ui_wmainwindow.h, problem is i have changed some names to first menu and on the second menu i tried to write the first menu name, but older names still remains on ui header, so when i try to put open_file, it puts open_file_2 and can't change it back, tryied to edit ui header but it resets next compiling time...

        any suggestion?
        thanks

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @U7Development said in cant delete unused properties from ui_ prefixed headers:

        tryied to edit ui header

        To make it clear: this file is generated! Each time it is generated your changes will be lost, so do not edit it!
        Do as @JKSH suggested.

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

        1 Reply Last reply
        4

        • Login

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