On Sunday 12 of September 2004 18:05, Taj Morton wrote: > >>It is apparent that QWidget::find(xid) is returning 0, as the docs say > >>"If there is no widget with this identifier, 0 is returned." > >>So, is there anyway to get a QWidget of a GTK window... If not, is there > >>another workaround that will allow me to give getOpenFileName > >>instructions to have a GTK window as a parent? > > > > You can use XSetTransientFor() to set the parent relationship directly. > > If you cannot access the dialog widget itself, you may use a hack like > > the one in kdebase/kdialog (alternatively KFileDialog could get overloads > > that'd accept WId instead of QWidget*). > > Thanks, I reimplemented KFileDialog::getOpenFileName and it works great! > My only problem is that ops->clearHistory() is protected. Thus, I can't > call it. I have this: > > > Is there a workaround to dlg.ops->clearHistory(), or is it really > required to call clearHistory()? I suggest you either use the hack from kdebase/kdialog or submit new overloads for KFileDialog. -- Lubos Lunak KDE developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Drahobejlova 27 tel: +420 2 9654 2373 190 00 Praha 9 fax: +420 2 9654 2374 Czech Republic http://www.suse.cz/ >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<