Results 1 to 3 of 3

Thread: Title Bar Change setWindowModified

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Title Bar Change setWindowModified

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Title Bar Change setWindowModified

    Looks correct to me. Just to assure, did you apply the window title containing the placeholder before calling QWidget::setWindowModified()?
    J-P Nurmi

  3. #3
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Red face Re: Title Bar Change setWindowModified

    I apologize. I figured it out.
    I was out of scope for the windowTitle().
    Thanks,

    Karl

Similar Threads

  1. How to prevent table header from font change.
    By kenny_isles in forum Qt Tools
    Replies: 1
    Last Post: 14th February 2007, 19:01
  2. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 15:02
  3. Can't change the text display of a QTreeview item.
    By johnny_sparx in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2006, 01:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.