LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-05-2004, 07:19 AM   #1
stpg
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 2
Posts: 11

Rep: Reputation: 0
how to connect my signal with standart (Qt(QListView))


i want to handle events in my list view so
Code:
class mqMainList
      : public QListView
{

public:
  mqMainList(QWidget* parent=0, const char* name=0)
      : QListView(parent,name)
  {
    connect( this, SIGNAL( doubleClicked( QListViewItem* ) ),
             (mqMainList*)this, SIGNAL( a( QListViewItem* ) ) );
  }
 private slots:
    void a(QListViewItem*)
    {

    }
};
and i create my list view like this
Code:
l_main=new mqMainList( this, "Main Panel" );
but at run time i get:

QObject::connect: No such signal QListView::a(QListViewItem*)
QObject::connect: (sender name: 'Main Panel')
QObject::connect: (receiver name: 'Main Panel')

what am i doing wrong


thanks
 
Old 07-05-2004, 07:22 AM   #2
stpg
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 2
Posts: 11

Original Poster
Rep: Reputation: 0
i try
connect( this, SIGNAL( doubleClicked( QListViewItem* ) ),
(mqMainList*)this, SLOT( a( QListViewItem* ) ) );
and same got result
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squid stops due to signal 6 and signal 25 simplyrahul Linux - Software 3 05-28-2011 01:05 AM
QListView help elvislu Programming 2 05-17-2005 09:37 AM
QListview in Qt shivaligupta Programming 1 01-13-2005 03:19 PM
Signal 6: Unknown Signal <=> Error with MAYA4.X under Linux SOLVED!!!! Faeroon Linux - Software 9 05-09-2003 01:57 PM
Signal: 6 (Unknown Signal) - Problems running a program Faeroon Linux - Software 86 01-14-2003 12:08 AM


All times are GMT -5. The time now is 03:23 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration