c++cinder

Cinder can't update window's title when the application is running


I have tried copying the Settings *settings to a class variable and using

sets->setTitle("new title");

but outside the setup() method it doesn't work. Is there a workaround to that?


Solution

  • Everywhere in your app where you include the cinder app header

    #include "cinder/app/AppNative.h"
    

    You can call this to change the title, and other Window properties.

    ci::app::getWindow()->setTitle("Respoducir Video");
    

    UPDATE - 15/12/2018

    Cinder v0.9.1

    The include path has changed to:

    #include "cinder/app/Window.h"