Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I set a title for a window containing a QListView?
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jdent
    wrote on last edited by
    #1

    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

    kshegunovK 1 Reply Last reply
    0
    • J jdent

      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

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @jdent
      Hello,
      QWidget::setWindowTitle?

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved