Results 1 to 2 of 2

Thread: QDirModel's index overloaded function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDirModel's index overloaded function

    Does your sub-class re-implement the other QDirModel::index (the one that takes int row, int column, const QModelIndex& parent), or declare some other member function named “index”?

    If so, that declaration hides all inherited functions by the same name. In that case, you could add:
    Qt Code:
    1. using QDirModel::index;
    To copy to clipboard, switch view to plain text mode 
    to the definition of your derived class to allow overload resolution of the name “index” to include member functions from QDirModel.

  2. The following user says thank you to Coises for this useful post:

    psih128 (27th January 2010)

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Regading Driver to connect Postgresql Database
    By dummystories in forum Installation and Deployment
    Replies: 38
    Last Post: 12th March 2009, 07:19
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.