QComboBox - Interface to the Qt QComboBox class
use QComboBox;
Inherits QWidget.
Requires QPixmap.
new, autoResize, changeItem, count, currentItem, insertionPolicy, insertItem, insertStrList, maxCount, pixmap, removeItem, setAutoResize, setCurrentItem, setInsertionPolicy, setMaxCount, setSizeLimit, sizeLimit, text
The only significant change is insertStrList(). For obvious reasons, this function cannot be directly converted to Perl because of it's list argument. Perl simplifies the matter greatly by allowing a simple argument-list change to insertStrList(index, str1, ..., strN). Just set the index argument to -1 of you want it the items to be appended.
insertStrList(index, str1, ..., strN)
index
The %Policy hash is exported into the user's namespace. It contains all the constants that were referenced through QComboBox:: in C++.
%Policy
If there is sufficient demand, I'm more than willing to change the insertStrList() arguments to make index the last argument and defaulted to -1. This would break scripts, so be warned.
Ashley Winters <jql@accessone.com>
To install Qt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Qt
CPAN shell
perl -MCPAN -e shell install Qt
For more information on module installation, please visit the detailed CPAN module installation guide.