Hi,
I am new to Qt and I have created a QComboBox which consists of 5 items inside it.
What i am looking for is if the user clicks anyone of those items for example:if the user clicks the first item the page should drop down and displays the information about the first item.Hope everyone understood what i am trying to say.
Can anyone say me what is the next step i need to do so that i can get displayed the information..?
Here is my code:
#include "mainwindow.h"
#include <QtGui/QApplication>
#include<QComboBox>
#include<QHBoxLayout>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget *win =new QWidget;
QHBoxLayout *layout = new QHBoxLayout;
QComboBox *combo = new QComboBox();
combo->addItem("A");
combo->addItem("B");
combo->addItem("C");
combo->addItem("D");
layout->addWidget(combo);
win->setLayout(layout);
win->showMaximized();
return app.exec();
}
I am getting the combobox displayed with the 4 items which i had declared.I need to hold some information in A,B,C,D list items.
How to create information in list items and how to display those when clicked on anyone of those items?
Waiting for the reply.
Regards,
Harish.

nly if the user clicks the item it should display a paragraph of text about it in a dropdown box and not as a tool tip.


