Subject: how do i design items in QIconView
Posted By: pranav_kavi Post Date: 1/4/2006 1:43:04 AM
hi all,

I am a beginner in qt programming. I have come across a problem while
developing a chat server.

I want to get different functions called by clicking different items
in qiconview. Example : one click on the item in the qiconview a new
window has to be opened

My code is:

QIconViewItem *item=new QIconViewItem(iv,result,QPixmap("/home/sindhu/BuddyList/offline.gif" ) );
connect(iv,SIGNAL(clicked(QIconViewItem*)),this,SLOT(itemDoubleClicked(QIconViewItem*)));
.
.
.
.
.
.
void BList::itemDoubleClicked(QIconViewItem *item)
{
   QMessageBox::warning( this,"check","hi");
}

During qmake of the project i am getting the following messages:
.ui/Blist.h:31:`QIconViewItem' was not declared in this scope
.ui/Blist.h:31: `item' was not declared in this scope
.ui/Blist.h:31: invalid data member initialization
.ui/Blist.h:31: (use `=' to initialize static data members)
.ui/Blist.h:31: variable or field `itemDoubleClicked' declared void
.ui/Blist.h:31: `itemDoubleClicked' declared as a `virtual' field


I request you to solve the problem.

Thanking you,
With warm regards,
kavitha


Go to topic 38245

Return to index page 404
Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395