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.
emulating signal in KDirOperator
how can I send "returnPressed" signal from KDirOpearor's method to qny element in current KFileView*
for examaple
void MyDirOperator::emulClick()
{
KFileItem *item;
item = view()->currentItem();
// now need to emulate pressing return
}
You could set the item selected and then send a QKeyEvent with cod for Enter to the KFileView instance, see QApplication::sendEvent
Cheers,
_
Qt/KDE Developer
Debian User