how do i design items in QIconView
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,SL OT(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
|