In Qt Designer, I can rename a variable from Designer by right-clicking on it and choosing Context Menu->Change objectName...
I want to change the default names such as dataGridView1, dataGridView2, etc. that C# assigns to new controls, but I couldn't find an equivalent property in the Properties box:
I looked for "Object Name", "Name" or something similar. How do I change it?
You can rename a control from Properties window. To do so, select the control and press F4 or right click and choose Properties. Then from toolbar of Properties window, select Properties button with wrench over paper icon. Then change (Name) property.
Also you can rename a control using Document Outline window. To to so, press Ctrl + Alt+ T to open Document Outline window. From the control tree select the control which you want and then press F2 or right click and choose Rename.