Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator replaces . in float by ->

Qt Creator replaces . in float by ->

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.3k Views 2 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.
  • Teh MeT Offline
    Teh MeT Offline
    Teh Me
    wrote on last edited by
    #1

    When I try to write

    float f=0.0;
    

    Qt Creator replaces . with -> instantly, as if 0 is a pointer.
    I use Qt Creator 4.0.1. Should I report this issue, or is it already known?

    kshegunovK ? 2 Replies Last reply
    0
    • Teh MeT Teh Me

      When I try to write

      float f=0.0;
      

      Qt Creator replaces . with -> instantly, as if 0 is a pointer.
      I use Qt Creator 4.0.1. Should I report this issue, or is it already known?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @Teh-Me
      Hello,
      I can't reproduce that with Qt Creator 4.0.0 on Debian.

      If you want to see what's known you could open the bugreports page and search for Qt creator (you can use the forum credentials to log in the bug tracker).

      Kind regards.

      Read and abide by the Qt Code of Conduct

      Teh MeT 1 Reply Last reply
      0
      • kshegunovK kshegunov

        @Teh-Me
        Hello,
        I can't reproduce that with Qt Creator 4.0.0 on Debian.

        If you want to see what's known you could open the bugreports page and search for Qt creator (you can use the forum credentials to log in the bug tracker).

        Kind regards.

        Teh MeT Offline
        Teh MeT Offline
        Teh Me
        wrote on last edited by
        #3

        @kshegunov, I also use clang code model, maybe it is important. Do you use it? I will try to disable it tomorrow, when I reach my linux machine.

        kshegunovK 1 Reply Last reply
        0
        • Teh MeT Teh Me

          @kshegunov, I also use clang code model, maybe it is important. Do you use it? I will try to disable it tomorrow, when I reach my linux machine.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @Teh-Me
          Honestly, I had no idea until now, but I just checked - no, I'm not using the clang code model (the plugin seems to be disabled).

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Can confirm this with Creator 4.0.2 (Linux x86_64). Only happens with Clang code model.

            1 Reply Last reply
            1
            • Teh MeT Teh Me

              When I try to write

              float f=0.0;
              

              Qt Creator replaces . with -> instantly, as if 0 is a pointer.
              I use Qt Creator 4.0.1. Should I report this issue, or is it already known?

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @Teh-Me said:

              Should I report this issue

              Do it if you like but looking at https://bugreports.qt.io already shows so many bugs regarding the clang code model...

              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