8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I'm new to Linux, been at it a couple weeks. I have written a script that basically acts as a watchdog to ping a server on a set interval, make sure chromium-browser is running, and a couple other things (it displays data via web browser). I'd like to make it stop the script when I hit... (4 Replies)
Discussion started by: strategery
4 Replies
2. UNIX for Dummies Questions & Answers
Consider this code snippet below:-
char=`which afplay`
if
then
xterm -e 'while true; do clear; echo "Press Ctrl-C to Quit..."; afplay /tmp/pulse.wav; done' & > /dev/null 2>&1
fi
This launches a second terminal window that generates a specific waveform for the next calibration of... (4 Replies)
Discussion started by: wisecracker
4 Replies
3. What is on Your Mind?
In the fall I am taking courses in System Admin and Networking Admin, along with Cisco classes. Sometime next year I hope to get Red Hat and CCNA certifications, then try to get some experience and a job.
I am wondering what I can focus on in the meantime (and in my spare time) that will... (1 Reply)
Discussion started by: ScottLew
1 Replies
4. UNIX for Dummies Questions & Answers
Please Help a Newbie,
I'm using the display command to post a picture of several configurations for a machine operator to choose from. The Issue I have is when I display the image the displayed image steals focus from my bash window. The operator then has to re-select the window to answer the... (1 Reply)
Discussion started by: BitBoy
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all
I have a java program I'm starting in Mac os from the terminal using the command
java -Djava.library.path=/Users/me/Desktop/Cfiles/DynamicCTGLayout/build/Release -jar
However, when I do this, my current program I'm using becomes "deselected" and the java program's GUI becomes... (2 Replies)
Discussion started by: WhiteTiger
2 Replies
6. Programming
Is this possible to be done with C++ ?
I am working on Qt Creator by I didn't find any working setFocus function or something. Can you help me a bit?
Thank you.
The program actually checks if there is a process of this program already running and if there is it exits.
I want to make it focus on... (2 Replies)
Discussion started by: hakermania
2 Replies
7. Shell Programming and Scripting
Hi, i found xte and xdotool for sending some keys to windowed applications but they need to have the focus on it.
Can someone say me if i can do the same but wihtout focusing the window i want to type something ?
edit: xreplay (0 Replies)
Discussion started by: linked
0 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
Is there a way to make sawfish window manager focus on a gui when you click it but not make it raise to the top? I know that motif and CDE (soalris) allow you to focus with out raising the windows. THANKS (2 Replies)
Discussion started by: larry
2 Replies
QFocusEvent(3qt) QFocusEvent(3qt)
NAME
QFocusEvent - Event parameters for widget focus events
SYNOPSIS
#include <qevent.h>
Inherits QEvent.
Public Members
QFocusEvent ( Type type )
bool gotFocus () const
bool lostFocus () const
enum Reason { Mouse, Tab, Backtab, ActiveWindow, Popup, Shortcut, Other }
Static Public Members
Reason reason ()
void setReason ( Reason reason )
void resetReason ()
DESCRIPTION
The QFocusEvent class contains event parameters for widget focus events.
Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, keypresses (e.g. Tab or
Backtab), the window system, popup menus, keyboard shortcuts or other application specific reasons. The reason for a particular focus event
is returned by reason() in the appropriate event handler.
The event handlers QWidget::focusInEvent() and QWidget::focusOutEvent() receive focus events.
Use setReason() to set the reason for all focus events, and resetReason() to set the reason for all focus events to the reason in force
before the last setReason() call.
See also QWidget::setFocus(), QWidget::focusPolicy, and Event Classes.
Member Type Documentation
QFocusEvent::Reason
This enum specifies why the focus changed.
QFocusEvent::Mouse - because of a mouse action.
QFocusEvent::Tab - because of a Tab press.
QFocusEvent::Backtab - because of a Backtab press (possibly including Shift/Control, e.g. Shift+Tab).
QFocusEvent::ActiveWindow - because the window system made this window (in)active.
QFocusEvent::Popup - because the application opened/closed a popup that grabbed/released focus.
QFocusEvent::Shortcut - because of a keyboard shortcut.
QFocusEvent::Other - any other reason, usually application-specific.
See the keyboard focus overview for more about focus.
MEMBER FUNCTION DOCUMENTATION
QFocusEvent::QFocusEvent ( Type type )
Constructs a focus event object.
The type parameter must be either QEvent::FocusIn or QEvent::FocusOut.
bool QFocusEvent::gotFocus () const
Returns TRUE if the widget received the text input focus; otherwise returns FALSE.
bool QFocusEvent::lostFocus () const
Returns TRUE if the widget lost the text input focus; otherwise returns FALSE.
Reason QFocusEvent::reason () [static]
Returns the reason for this focus event.
See also setReason().
void QFocusEvent::resetReason () [static]
Resets the reason for all future focus events to the value before the last setReason() call.
See also reason() and setReason().
void QFocusEvent::setReason ( Reason reason ) [static]
Sets the reason for all future focus events to reason.
See also reason() and resetReason().
SEE ALSO
http://doc.trolltech.com/qfocusevent.html http://www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license
statement.
AUTHOR
Generated automatically from the source code.
BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you.
Thank you.
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a
web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially
supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page
(qfocusevent.3qt) and the Qt version (3.1.1).
Trolltech AS 9 December 2002 QFocusEvent(3qt)