Qt-interest Archive, May 2008
elide mode on qComboBox
Message 1 in thread
Using qt4.3.x when the contents of a qcombobox are wider than the box's
width, the elide mode seems
defaulted to qt::elideMiddle so you end up with something unreadable. How
can I set it so that the
ellipsis shows up on the right?
--
[ signature omitted ]
Message 2 in thread
On Wed, May 7, 2008 at 6:54 PM, Duane Hebert <spoo@xxxxxxxxx> wrote:
> Using qt4.3.x when the contents of a qcombobox are wider than the box's
> width, the elide mode seems
> defaulted to qt::elideMiddle so you end up with something unreadable. How
> can I set it so that the
> ellipsis shows up on the right?
comboBox->view()->setTextElideMode( Qt::ElideRight );
--
[ signature omitted ]
Message 3 in thread
"Helder Correia" <helder.pereira.correia@xxxxxxxxx> wrote in message
news:ca1ea3780805071026t4b7fb214n2dc8273af9af83ac@xxxxxxxxxxxxxxxxx
> On Wed, May 7, 2008 at 6:54 PM, Duane Hebert <spoo@xxxxxxxxx> wrote:
> > Using qt4.3.x when the contents of a qcombobox are wider than the box's
> > width, the elide mode seems
> > defaulted to qt::elideMiddle so you end up with something unreadable.
> > How
> > can I set it so that the
> > ellipsis shows up on the right?
>
> comboBox->view()->setTextElideMode( Qt::ElideRight );
Thanks.
--
[ signature omitted ]