When your legend is completely unrelated to the plot items you can simply use QLabels and arrange plot and labels in some QLayout.
Otherwise you would need to provide more details: how many bar items do you have and which attributes of them do you want to display how on your legend.
Uwe
Bookmarks