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. Why the collection and value of foreach statement have no color identification in the editor?
Forum Updated to NodeBB v4.3 + New Features

Why the collection and value of foreach statement have no color identification in the editor?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 293 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.
  • C Offline
    C Offline
    canid
    wrote on last edited by
    #1

    Why the collection and value of foreach statement have no color identification in the editor?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What do you mean? Ranged for loop has the same colouring. What colours do you expect?

      (btw. don't use foreach in new code, it's semi-deprecated, see the docs)

      (Z(:^

      C 1 Reply Last reply
      2
      • sierdzioS sierdzio

        What do you mean? Ranged for loop has the same colouring. What colours do you expect?

        (btw. don't use foreach in new code, it's semi-deprecated, see the docs)

        C Offline
        C Offline
        canid
        wrote on last edited by
        #3

        @sierdzio
        hi,Please see belowalt text

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          For me the type is being highlighted. Perhaps you're using old Qt Creator version? foreach is a macro so the old parser could interpret the arguments as strings instead of concrete types.

          (Z(:^

          1 Reply Last reply
          3

          • Login

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