protected slots:
 
void itemPressed
( int nBtn, Q3ListViewItem 
*pItem, 
const QPoint &Pos, 
int nCol 
);
  
////////////////////////////////////////////////////////
 
void CGroupView
::itemPressed( int nBtn, Q3ListViewItem 
*pItem, 
const QPoint &Pos, 
int nCol 
) {
	if ( !pItem )  // here it says that i don't click on the item and doesn't select it
		return; //it has something to do with const QPoint &Pos
 
	if ( nBtn != Qt::LeftButton )
		return;
 
	Q_UNUSED( Pos );
	Q_UNUSED( nCol );
 
	// Remember last pressed item.
	m_sLastClickedItem = pItem->text( 0 );
}
 
/////////////////////////////////////////////////////////////////////////
 
connect( this, 
SIGNAL( mouseButtonPressed
( int, Q3ListViewItem 
*, 
const QPoint &, 
int ) ),
 			 this, 
SLOT( itemPressed
( int, Q3ListViewItem 
*, 
const QPoint &, 
int ) ) );
 
        protected slots:
void itemPressed( int nBtn, Q3ListViewItem *pItem, const QPoint &Pos, int nCol );
////////////////////////////////////////////////////////
void CGroupView::itemPressed( int nBtn, Q3ListViewItem *pItem, const QPoint &Pos, int nCol )
{
	if ( !pItem )  // here it says that i don't click on the item and doesn't select it
		return; //it has something to do with const QPoint &Pos
	if ( nBtn != Qt::LeftButton )
		return;
	Q_UNUSED( Pos );
	Q_UNUSED( nCol );
	// Remember last pressed item.
	m_sLastClickedItem = pItem->text( 0 );
}
/////////////////////////////////////////////////////////////////////////
connect( this, SIGNAL( mouseButtonPressed( int, Q3ListViewItem *, const QPoint &, int ) ),
			 this, SLOT( itemPressed( int, Q3ListViewItem *, const QPoint &, int ) ) );
To copy to clipboard, switch view to plain text mode 
  
				
Bookmarks