PDA

View Full Version : Title Bar Change setWindowModified



KaptainKarl
15th February 2007, 17:06
I'm using QT 4.1.1 on Suse Linux 10.0.

I'm attempting to set the window as modified calling setWindowModified(true).
When this function is called, I get the following sent to standard error:

QWidget::setWindowModified: The window title does not contain a ' ' placeholder!

Here is how I set the window title:
setWindowTitle("document1.txt ");

I guess I do not understand how to embed the placeholder.
Can somone enlighten men?

Karl

jpn
15th February 2007, 17:13
Looks correct to me. Just to assure, did you apply the window title containing the placeholder before calling QWidget::setWindowModified()?

KaptainKarl
15th February 2007, 18:03
I apologize. I figured it out.
I was out of scope for the windowTitle().
Thanks,

Karl