How can I set a title for a window containing a QListView?



  • Hi,

    Working on my first exploration project, I have:

    auto view = std::make_unique<QListView>();

    view->setModel(model.get());
    
    view->setTitle("First list view");
    
    view->show();
    

    but of course, setTitle does not exist. Any suggestions?

    Regards,
    Juan


  • Qt Champions 2016

    @jdent
    Hello,
    QWidget::setWindowTitle?

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.