Results 1 to 3 of 3

Thread: Title Bar Change setWindowModified

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

    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
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    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
    Mar 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    7
    Thanked 4 Times in 4 Posts

    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, 20:01
  2. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 16: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, 02: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
  •  
Qt is a trademark of The Qt Company.