PDA

View Full Version : Getting Focus to Window



uahmed
19th March 2012, 22:41
Hi

I am having UI file of a window and i want that it get focus ,i only have access to UI file . I tried to change focusPolicy to StrongFocus but it didnt help me , window do raise at top of other but i need to click on window to get foucs , is it possible to get window focus without clicking on window ?

ChrisW67
19th March 2012, 22:44
QWidget::setFocus() and/or QWidget::activateWindow()