Well if you use setView function, you will need to make your own class. I tried the following -
{
public:
MyListView()
{
grip->resize(grip->sizeHint());
}
protected:
{
grip->move(rect().bottomRight() - grip->rect().bottomRight());
grip->raise();
}
{
grip->move(rect().bottomRight() - grip->rect().bottomRight());
grip->raise();
}
};
class MyListView : public QListView
{
QSizeGrip *grip;
public:
MyListView()
{
grip = new QSizeGrip(this);
grip->resize(grip->sizeHint());
}
protected:
void showEvent ( QShowEvent * event )
{
QListView::showEvent(event);
grip->move(rect().bottomRight() - grip->rect().bottomRight());
grip->raise();
}
void resizeEvent ( QResizeEvent * event )
{
QListView::resizeEvent(event);
grip->move(rect().bottomRight() - grip->rect().bottomRight());
grip->raise();
}
};
To copy to clipboard, switch view to plain text mode
You will need to set something like - comboBox->setView(new MyListView());
I could get the grip on bottom right. I refered to QDialog code how they used QSizeGrip.
But theres a problem, the grip gets hidden after resize when theres a scrollbar. May be you can work on it.
If you had to use showPopup(), you will need to subclass QComboBox, resize the view in it and then call show. You can search in QComboBox::showPopup what it does.
Hope this helps
Bookmarks