Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, March 2008
update title in widget


Message 1 in thread

In have a Widget opened with a title.
At run time I need to change the title.
I use
		setWindowTitle(lpRobot->GetActiveProgram()->GetWindowTitle());
update();

but it don't runs.

Suggestions?

Thanks
Teo

--
 [ signature omitted ] 

Message 2 in thread

Hi,

On Thu, 13 Mar 2008 18:03:05 +0100, matteo <matteo.ceruti@xxxxxxxxx> wrote:
> In have a Widget opened with a title.
> At run time I need to change the title.
> I use
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂsetWindowTitle(lpRobot->GetActiveProgram()->GetWindowTitle());
> update();

I'm assuming that getActiveProgram() returns the widget you want to get the title of, and that it is of type QWidget. In that case you have a typo. Try:
setWindowTitle(lpRobot->GetActiveProgram()->getWindowTitle());

> but it don't runs.

Also, remember to provide output from compile next time. It makes it a lot easier for people to spot errors. :)

> Suggestions?
> 
> Thanks
> Teo
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

--
 [ signature omitted ]