Results 1 to 2 of 2

Thread: Qt creator intelllisense

  1. #1
    Join Date
    Jul 2016
    Posts
    53
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default Qt creator intelllisense

    Hi,

    I suspect, Intellisense in the QT creator is not working properly.

    I had commented the signature of the method in homeCtrl.h as well in HomeCtrl.Cpp, But the method is visible in the main.qml.
    As well as I had added the new signature for the method called

    Q_INVOKABLE void eveUserDetailsT(QString pstrUserName);

    and added the method in HomeCtrl.cpp
    void HomeController::eveUserDetailsT(QString pstrUserName)
    {


    }

    This newly added method is not shown in main.qml.

    I used the below code in main.cpp for exposing the methods in the Qml

    QQmlContext *HomeContext = appEngine.rootContext();qt.jpg
    HomeController *objHomeController = new HomeController();
    HomeContext->setContextProperty("objHomeController",objHomeCon troller);

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt creator intelllisense

    The code model might just not have been updated yet.

    If this is really important for whatever reason try a clean rebuild.

    Cheers,
    _

Similar Threads

  1. Replies: 10
    Last Post: 16th June 2014, 16:40
  2. Replies: 1
    Last Post: 12th June 2014, 08:37
  3. Replies: 2
    Last Post: 11th June 2014, 09:17
  4. Replies: 2
    Last Post: 22nd November 2011, 01:09
  5. Qt Creator
    By Baracardi in forum Qt Tools
    Replies: 5
    Last Post: 28th May 2010, 15:43

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.