NAME
QComboBox - Interface to the Qt QComboBox class
SYNOPSIS
use QComboBox;
Inherits QWidget.
Requires QPixmap.
Member functions
new, autoResize, changeItem, clear, count, currentItem, currentText, insertionPolicy, insertItem, insertStrList, maxCount, pixmap, popup, removeItem, setAutoResize, setCurrentItem, setInsertionPolicy, setMaxCount, setSizeLimit, sizeLimit, text
Overridden functions
keyPressEvent, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, paintEvent, resizeEvent, setBackgroundColor, setEnabled, setFont, setPalette, sizeHint
DESCRIPTION
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.
EXPORTED
The %Policy
hash is exported into the user's namespace. It contains the insertion policy constants. I couldn't resist changing everything, so here's some sample code...
Was: QComboBox::NoInsertion
Now: $Policy{None}
Was: QComboBox::AtTop
Now: $Policy{Top}
Was: QComboBox::AfterCurrent
Now: $Policy{After}
The other constants are consistent with these. And when all else fails, there's always keys %Policy
.
CAVEATS
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.
AUTHOR
Ashley Winters <jql@accessone.com>