Solved QListView::iconMode Infopanel
-
Hey guys,
i have created and filled a QListView with IconMode Settings.What i need now is an infopanel next to a selected icon.
Here an example:It's fine for me if it overlaps the other icons.
Is there any way to do it ? If yes, how can i achieve this ? -
Hi
Why not just use a QListView in list mode next to the
QListView in icon mode ? -
My goal was to have the InfoBox right next to the selected icon.
Else i would simply create a non-modal dialog and show this above everything.
-
@Neko
Ok then you need a floating window.
Like you suggest, a non modal dialog.Since you show info with scrollbar, i assume using tooltip is not enough.
-
Okay, is there a way to get the position of my clicked icon and position the non modal dialog right next to it (on the right side)?
-
Hi
yes there is visualRect()
http://doc.qt.io/qt-5/qabstractitemview.html#visualRect -
Thanks, i'll try it
-
@Neko
Just as note.
the rect might be in local coordinates so you might need to use
the mapTo function to translate the x,y to world coordinates to position a dialog,