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. No arrow/dot autocomplete for C structs?
Forum Updated to NodeBB v4.3 + New Features

No arrow/dot autocomplete for C structs?

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 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.
  • X Offline
    X Offline
    xgbi
    wrote on last edited by
    #1

    Hello,

    I'm used to having this nice little autocompletion that transforms a dot (".") to an arrow ("->") when I'm accessing a class data by using a pointer.
    This seems to not to work for C structures pointers:

    @
    typedef struct _C {
    int a;
    int b;
    } MyStruct;

    int function(){
    MyStruct toto = (MyStruct)malloc(sizeof(MyStruct));
    toto. // <- won't change to an arrow automatically

    }
    @

    Is this a bug on my side? Or is it normal?

    My setup: QTCreator 2.7.0 built with Qt 4.8.4 on Windows 7 64b.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Please "file a bug report":https://bugreports.qt-project.org/ for things like this.

      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