Congratulations to our 2022 Qt Champions!

Grab scrolled and expanded items in QTreeWidget



  • I want grab whole area of a QTreeWidget when it is expanded. I use following code to grab image.

    ui->treeWidget->grab().save("Test.png");
    

    But expanded Items aren't included in the ouput image.
    Sample output image:
    alt text


Log in to reply