PDA

View Full Version : QToolButton & QPushButton



hrcariaga
15th July 2008, 04:38
hi!

how can i remove the & in the QPushButoon and QToolButton name?

everytime i add new QToolButton or QPushButton, & is automatically added in its name.. i edited the buttons name and remove the & but after pressing ok, the & returns..

is way a to remove this?

im using qt 3.3 on linux..

thnks..:)

munna
15th July 2008, 05:56
Can you explain this a little more or provide some screen shots explaining , what's exactly is happening?

hrcariaga
15th July 2008, 06:09
for instance, i will insert new QPushButton in the designer (im using KDevelop Designer), then the default button text is p&ushButton1. then i'm trying to remove the & in the buttons text. the problem is i cant remove & in the buttons text..

thks...

munna
15th July 2008, 06:20
May be this is an issue with KDevelop designer (not sure). But you can do this.

Open the UI file in some text pad, search for your pushbutton name, remove the '&' and save the file. Now compile your code and see if you still have the problem.

hrcariaga
15th July 2008, 06:36
i did it but still the same problem...

the '&' stil returning...

niwei thanks...

fifth
15th July 2008, 21:17
Did you check for all occurrences of the string in the ui file? I dont use designer myself but i remember seeing a section for translations which sets all the ui text.