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 4.2 weired bug
QtWS25 Last Chance

QtCreator 4.2 weired bug

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 1.3k 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.
  • houssQtH Offline
    houssQtH Offline
    houssQt
    wrote on last edited by
    #1

    Hi Qt guys (and girls),
    I experienced a really weird bug with QtCreator 4.2 (Qt 5.7.1, MSVC 2015 32Bits).
    BUG: When I try to generate the missing members of a Q_PROPERTY by pressing Alt+Enter, QtCreator generate the members in really bad manner.
    Here a screenshot of the problem. http://imgur.com/a/8ZUjq

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

      Hi,

      Did you modify any settings in Qt Creator ?

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

      1 Reply Last reply
      0
      • houssQtH Offline
        houssQtH Offline
        houssQt
        wrote on last edited by
        #3

        No a fresh install.

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

          I tested it on macOS but couldn't reproduce that.

          Did you have your cursor somewhere specific ?

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

          1 Reply Last reply
          0
          • houssQtH Offline
            houssQtH Offline
            houssQt
            wrote on last edited by
            #5

            Wherever I put the cursor in the beginning, random place or at the end, I end-up with the same result, maybe it's a win 10 related bug ??.
            because when i try qtcreator on a win 7 machine it works as expected.

            1 Reply Last reply
            0
            • houssQtH Offline
              houssQtH Offline
              houssQt
              wrote on last edited by
              #6

              I think I know what cause this bug. it's the missing public section, when I add the public section to the class everything works as expected.
              Maybe this should be corrected in the next qt-creator release, I guess it should add the public section automatically and insert the correct members.

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

                Can you show a header file that triggers that ?

                I have tested by removing the public keyword but it worked as expected and created a public section for the getter and a public slot section for the setter.

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

                1 Reply Last reply
                0

                • Login

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