PDA

View Full Version : Multiple selection list in webkit qt



swagatdash
23rd June 2010, 15:51
Hi,

I developed a QT application to render an HTML file (which contains a multiple selection list). It was able to render the html file, but with undesired outcome. It renders a combo box instead a multi selection list. Please let me know if the multiple selection lists is supported in case of webkit for QT. In addition to that I checked the same html file with N97 native browser (7.x), it works fine. It allows selecting multiple items.
items from the list.

Following is the code snippet:

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QtWebKit w;
view->load(QUrl("qrc:///Test.html"));
view->showMaximized();
return a.exec();
}
Test.html
________

<html>
<head>
<select multiple="multiple" >
<option value="football">Football</option>
<option value="baseball">Baseball</option>
<option value="soccer">Soccer</option>
<option value="basketball">Basketball</option>
<option value="football">Football</option>
<option value="baseball">Baseball</option>
</select>
</body>
</html>