You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, June 24th 2005, 7:23pm

get the current KMdiChildView of a KMdiMainFrm object

Hi all,
I'm developping a KMdiMainFrm based application, and I don't manage to retrieve a pointer from the currently edited KMdiChildView... it's a bit annoying !
I try to call the function activeWindow(), but it doesn't work very well...
Can you help me ?
thanks.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Saturday, June 25th 2005, 12:52pm

activeWindow() looks like the method to use.
If it doesn't work as expected it could be a bug.

As a workaround you could try tracking the active child with the viewActivated signal.

Cheers,
_
Qt/KDE Developer
Debian User

3

Monday, June 27th 2005, 10:07am

thanks for the advice... I will try this.