Hi all,
I'm working on a content browser, I have a QListView sets to icon mode.
That works fine but the problem is how changes the item size ?
Another problem is items are not aligned, a solution exists ?
Thanks for the help
[SOLVED] :
m_DetailTree
->setMovement
( QListView::Static );
m_DetailTree
->setGridSize
( QSize( 60,
60 ) );
m_DetailTree->setMovement( QListView::Static );
m_DetailTree->setGridSize( QSize( 60, 60 ) );
To copy to clipboard, switch view to plain text mode
[PROBLEM] :
That align but the size of the item in the grid cell doesn't take all the cell space, it's fixed size, a solution exist ?
I tried :
m_DetailTree
->setGridSize
( QSize( 80,
80 ) );
m_DetailTree
->setIconSize
( QSize( 80,
80 ) );
m_DetailTree->setUniformItemSizes( true );
m_DetailTree->setGridSize( QSize( 80, 80 ) );
m_DetailTree->setIconSize( QSize( 80, 80 ) );
m_DetailTree->setUniformItemSizes( true );
To copy to clipboard, switch view to plain text mode
setIconSize has no effect, maybe a bug of Qt.
Bookmarks