QtCreator automatically changes button text from "double" to "doub&le" etc.



  • As mentioned in $topic, QtCreator doen't allow me to change a button's name to "double": It will automatically rename it to "doub&le".

    I understand the purpose of "&", but still I don't want to have control over button names.

    What I did: use Object->"Change text..." in the object inspector. After typing "double" in the respective field, the magic will automatically change it to "doub&le". Changing it back to "double" in the "text" property firld of "QAbstractButton" won't help and the text there might be inconsisten with the button text displayed on the form.


  • Moderators

    @J0J0 Just tested with QtCreator 4.3.1 on Windows 7 - it works as expected (double).
    Which QtCreator version do you use on which platform?
    With button you mean QPushButton?



  • @jsulm

    QtCreator: 3.5.1
    Qt: 5.5.1
    OS: x86_64-linux-gnu, Ubuntu 16.04.2 LTS "xenial"
    Compiler: GCC v5.2.1

    It happens with QRadioButton. They are in QGroupBox if that matters.


  • Lifetime Qt Champion

    Hi,

    If possible you should update to a more recent version of Qt. The current is 5.9.2 with 5.10 around the corner.



  • @SGaist

    Ok, why "should" I update? Does the new version has less bugs?

    I understand that newer versions will come with bugfixes, however if it's not a pure maintenance / bugfix release, it might also introduce new problems, UI redesign, different external representation (like project files) etc... Therefor I am usually prefering conservative support releases over complete redesign and potential new (unknown) issues.

    Can I install the new version in my HOME? I'd highly prefer to do it as USER and avoid the need to be ROOT to install a software.

    Can I use the new version and the old version in parallel, and switch back to the older one?


  • Moderators

    @J0J0 said in QtCreator automatically changes button text from "double" to "doub&le" etc.:

    Can I install the new version in my HOME? I'd highly prefer to do it as USER and avoid the need to be ROOT to install a software.

    Yes, you can - just use the online installer, per default it installs it in home directory.

    "Can I use the new version and the old version in parallel, and switch back to the older one?" - yes you can. You can have as many Qt versions as you like/need.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.