Results 1 to 2 of 2

Thread: Updating QDeclarativeView window title

  1. #1
    Join Date
    May 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Question Updating QDeclarativeView window title

    I am implementing a desktop application and need to update the WindowTitle of the QDeclarativeView based on the actions of the user (e.g. opening a file for edit will set the title to: "Plot Analysis - Plot Configuration 1").

    The Window Title is initially set in main.cpp

    Q_DECL_EXPORT int main(int argc, char *argv[])

    ....

    QDeclarativeView view;

    view.setWindowTitle("Plot Analysis");

    ....

    return app->exec();

    }

    How do I reference "view" from a qml component (file)?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Updating QDeclarativeView window title

    You can export it as a context property of the view.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Window Title
    By Archa4 in forum Newbie
    Replies: 5
    Last Post: 22nd February 2011, 08:13
  2. how to remove the window title bar?
    By tsuibin in forum Qt Programming
    Replies: 1
    Last Post: 3rd April 2009, 03:17
  3. Remove window title
    By marcel in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 05:06
  4. Remove Window title bar
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 16th January 2007, 12:56
  5. window title bar
    By moowy in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2006, 16:56

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.