Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator automatically changes button text from "double" to "doub&le" etc.
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 1.6k 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.
  • J Offline
    J Offline
    J0J0
    wrote on last edited by
    #1

    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.

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

    jsulmJ 1 Reply Last reply
    0
    • J J0J0

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

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

      J 1 Reply Last reply
      1
      • jsulmJ jsulm

        @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?

        J Offline
        J Offline
        J0J0
        wrote on last edited by
        #3

        @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.

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          1
          • SGaistS SGaist

            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.

            J Offline
            J Offline
            J0J0
            wrote on last edited by
            #5

            @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?

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

            jsulmJ 1 Reply Last reply
            0
            • J J0J0

              @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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #6

              @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.

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

              1 Reply Last reply
              1

              • Login

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