Results 1 to 2 of 2

Thread: How does Qml call fucntions which are neither slots nor Q_INVOKABLE

  1. #1
    Join Date
    Jun 2012
    Posts
    58
    Thanks
    13
    Qt products
    Qt4

    Default How does Qml call fucntions which are neither slots nor Q_INVOKABLE

    QAbstractItemModel has data(), roleName() etc functions which I guess is used by the Qml ListView (for eg.,) to retrieve information about the items it is supposed to display. These are neither slots nor Q_INVOKABLE, so how does Qml call them?

    {Qt 5.1 beta and quick 2.0}

  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: How does Qml call fucntions which are neither slots nor Q_INVOKABLE

    They are most likely called by the C++ code of ListView.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 12th December 2012, 07:48
  2. Phonon AudioDataOutput doesn`t call my slots
    By Erich in forum Qt Programming
    Replies: 0
    Last Post: 5th December 2011, 06:32
  3. Cannot call OpenCV 2.0 functions inside Qt slots
    By Asfer in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2010, 11:48
  4. Replies: 4
    Last Post: 16th February 2009, 07:10
  5. Replies: 1
    Last Post: 6th April 2006, 12:24

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
  •  
Qt is a trademark of The Qt Company.