Results 1 to 2 of 2

Thread: connection problem

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default connection problem

    I have a list view and for some reason my app can't find one of its signals:

    Object::connect: No such signal QListView::activated(QModelIndex&index)
    Object::connect: (sender name: 'directory_listView')
    Object::connect: (receiver name: 'RecordDialog')
    Here is the connection statement I use:
    connect( ui.directory_listView, SIGNAL( activated(const QModelIndex & index) ), this, SLOT( fileActivated(const QModelIndex & index) ) );

    The docs say QListView inherits the activated(const QModelIndex & index) signal from QAbstractView.

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: connection problem

    Ah ... I should have taken the names out.

    connect( ui.directory_listView, SIGNAL( activated(const QModelIndex &) ), this, SLOT( fileActivated(const QModelIndex &) ) );

    instead of

    connect( ui.directory_listView, SIGNAL( activated(const QModelIndex & index) ), this, SLOT( fileActivated(const QModelIndex & index) ) );

Similar Threads

  1. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  2. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  3. How do I keep the client connection open ?
    By probine in forum Newbie
    Replies: 2
    Last Post: 25th March 2006, 19:06
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.