Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to save the image of QTreeView
Qt 6.12 LTS is out! See what's new in the release blog

Is it possible to save the image of QTreeView

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 966 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Is it possible to save the image of QTreeView in a png file

    jsulmJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Is it possible to save the image of QTreeView in a png file

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Qt-Enthusiast I think in another thread from you somebody already shown you how to create a snapshot of a widget. Why not do it like shown there?
      https://forum.qt.io/topic/75776/how-to-take-snapshot-of-the-whole-gui/10

      QPixmap *pixmap = new QPixmap(this->size());
      this->render(pixmap);
      

      replace this with your tree view...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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