QWidget casts with PyQt?

S

Stefan Quandt

Hi,

I want to access widgets from a Qt container widget e.g.
item = ToolBox.item( 0 )

I know that the item is a QButtonGroup.
The Qt-Library returns a QWidget pointer.
So what I get is a Python QWidget wrapper object.

How can I access the returned item as what it is (as a QButtonGroup)?

Stefan
 
E

Ewald R. de Wit

Stefan said:
I want to access widgets from a Qt container widget e.g.
item = ToolBox.item( 0 )

I know that the item is a QButtonGroup.
The Qt-Library returns a QWidget pointer.
So what I get is a Python QWidget wrapper object.

This is quite a general problem for which I would like to know
a solution too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top