Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

code.js Example File
script/defaultprototypes/code.js

 listWidget.addItem("Red");
 listWidget.addItem("Blue");
 listWidget.addItem("Green");
 listWidget.addItem("Cyan");
 listWidget.addItem("Yellow");
 listWidget.addItem("Purple");
 listWidget.addItems(["Orange", "Gray"]);

 listWidget.currentItemChanged.connect(
     function(item)
     {
         listWidget.setBackgroundColor(item.text);
     }
 );

 listWidget.show();


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.1