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. Designer refuses pushbutton name change

Designer refuses pushbutton name change

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

    In Designer I added a pushbutton and gave is the name switch, but failed to notice that I did not include the _2 in the highlighting. When I tried to change switch_2 to switch I could no. Designer refused the change. I cut the pushbutton and added it anew and gave it the name switch, but Designer still calls it switch_2. How come? Can I change it or must I live with switch_2 when I really want switch?

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

      Hi
      There is another widget on the form called switch.
      Then it will add the number to it.

      1 Reply Last reply
      3
      • KillerSmathK Offline
        KillerSmathK Offline
        KillerSmath
        wrote on last edited by
        #3

        I believe this button keep in your ui file and because it, you can't create another button with same name.
        You can try open the ui file with a text editor and remove manually the switch pushbutton.

        @Computer Science Student - Brazil
        Web Developer and Researcher
        “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

        1 Reply Last reply
        3
        • O Offline
          O Offline
          ofmrew
          wrote on last edited by
          #4

          I believe that it is a bug! In life we must live with our mistakes, but having irreversible code is a problem that we must live with. . . .

          mrjjM 1 Reply Last reply
          0
          • O ofmrew

            I believe that it is a bug! In life we must live with our mistakes, but having irreversible code is a problem that we must live with. . . .

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @ofmrew
            hi
            Can you reproduce it a new blank form/project ?
            I highly doubt its a bug.
            I have never seen that except where the form already contain a widget with same name.
            Are you 100% sure there is not another widget on that form with same name ?

            1 Reply Last reply
            2

            • Login

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