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. Anonymous union
Forum Updated to NodeBB v4.3 + New Features

Anonymous union

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 1.9k 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.
  • Y Offline
    Y Offline
    yoavmil
    wrote on last edited by
    #1

    Qt creator doesn't auto complete anonymous union, for example
    @
    struct S
    {
    enum {CHAR, INT, DOUBLE} tag;

    union {
        char c;
        int n;
        double d;
    };
    

    };

    //...
    S s;
    s.c = '1';
    @

    I would expect Qt creator to autocomplete s.c, but it doesn't

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      It is probably still "this case here":http://qt-project.org/forums/viewthread/11522/#63262

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andrep
        wrote on last edited by
        #3

        Please report that at bugreports.qt-project.org.

        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