[PyKDE] Odd window behavior when embedding ActiveX controls

Sundance sundance at ierne.eu.org
Thu Apr 10 01:04:01 BST 2003


I heard greg Landrum said:

> My actual application isn't using IE and
> interacts more substantively with the embedded control.

Yeah, I pretty much figured so much. :)

>  Still, I could be using the word "embedding" improperly.

Nah, there's no strict definition that I know of -- I just meant to 
point out that there's no 'real', library-level interaction between Qt 
and your ActiveX, as opposed to what happens with the ActiveQt module.

> That's what I thought, but I can't figure out why it's always the
> same small size.

I don't know either. I theorize that QWidget being a very generic 
widget, it handles layouts on its own in ways that are confusing when 
you're used to dealing with 'complete' widgets... Or something like 
that. :p

> Doing that results in nothing at all being displayed.

Not even the ActiveX? Darn...

> Not an option.  I don't have a Qt license on windows.

I see.
Well... Maybe you'll want to investigate wxPython, then. I personally 
don't find it as excellent as Qt, but it's still a very decent toolkit, 
and I believe it does ActiveX embedding out of the box... I think. :)

http://www.wxPython.org/

> This is what I was planning on doing.  But it's not at all clear to
> me how to make the widget itself "invisible" (assuming the gray box
> is showing up because the widget is empty).  The resizing stuff can
> be taken of pretty easily (the code I posted already handles resize
> events).

I hope it'll work then. :)
You'll probably want to explore the QWidget doc in detail, no matter 
what... Lots of things there, so we could easily be overlooking a 
simple solution to your problem!
http://doc.trolltech.com/3.1/qwidget.html
Please tell us if you find the solution, it's an interesting problem!

> b) if no one else is interested in this, it's not an effective use of
> his time.

Well, provided that Qt Designer handles ActiveX at design time smoothly, 
and spares you the nitty-gritty job of allocating it and everything, I 
think I would be interested in seeing it as well. It might save me a 
lot of grief at work.

-- S.




More information about the PyQt mailing list