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. QT Creator 4.8.1 (Community) fails to autocomplete SIGNALS and SLOTS

QT Creator 4.8.1 (Community) fails to autocomplete SIGNALS and SLOTS

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 735 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.
  • M Offline
    M Offline
    Menion
    wrote on last edited by
    #1

    Hi all
    With version 4.8.1 of QT Creator for windows, the IDE has problem to autocomplete SIGNALS and SLOTS in the IDE.
    I think the issue starts from the parsing of "signals" and "public slots" in the Class declaration, because they don't turn "green" which should be the correct behaviour for the recognized keyword.
    The problem affects also built in QT types, like buttons.
    In order to reproduce the problem, create an application project, create a QButton and try to connect button instance SIGNAL clicked to SLOT with:

    connect(button, SIGNAL(clicked(bool)), this, SLOT(actionButton()));
    

    after having started "SIGNAL( " the IDE should prompt a list of signals belonging to button instance which is QButton, but it does not happen, the same with the SLOT

    aha_1980A 1 Reply Last reply
    0
    • M Menion

      Hi all
      With version 4.8.1 of QT Creator for windows, the IDE has problem to autocomplete SIGNALS and SLOTS in the IDE.
      I think the issue starts from the parsing of "signals" and "public slots" in the Class declaration, because they don't turn "green" which should be the correct behaviour for the recognized keyword.
      The problem affects also built in QT types, like buttons.
      In order to reproduce the problem, create an application project, create a QButton and try to connect button instance SIGNAL clicked to SLOT with:

      connect(button, SIGNAL(clicked(bool)), this, SLOT(actionButton()));
      

      after having started "SIGNAL( " the IDE should prompt a list of signals belonging to button instance which is QButton, but it does not happen, the same with the SLOT

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Menion,

      this is a known issue: QTCREATORBUG-20737

      You have two options:

      1. Switch to the new connect syntax (very recommended!): https://wiki.qt.io/New_Signal_Slot_Syntax
      2. Disable the Clang Code Model: Qt Creator > Help > About Plugins > Clang Code Model

      Regards

      Qt has to stay free or it will die.

      kshegunovK 1 Reply Last reply
      3
      • aha_1980A aha_1980

        Hi @Menion,

        this is a known issue: QTCREATORBUG-20737

        You have two options:

        1. Switch to the new connect syntax (very recommended!): https://wiki.qt.io/New_Signal_Slot_Syntax
        2. Disable the Clang Code Model: Qt Creator > Help > About Plugins > Clang Code Model

        Regards

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

        From the bugreport:

        // at this point, only &QThread:: members makes sense. However,
        // I have to type "&QThread::" myself to get the member list.
        // The same applies to the slot.

        Not exactly true, &QObject:: members also make sense, albeit they're already in the scope of QThread.

        Read and abide by the 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