Katoch
Katoch

Reputation: 2777

get pointer to QListWidget -- from QListWidgetItem

I am having QListWidgetItem * item pointing to an item in QListWidget.

How can i get pointer to QListWidget from QListWidgetItem ?

Upvotes: 1

Views: 134

Answers (1)

Use item->listWidget(). Simple.

Upvotes: 2

Related Questions