ioannis
25th September 2008, 18:56
How is it possible to add a button in the header of a QTreeWidget?
A minimal example is more than welcome... :)
durbrak
25th September 2008, 19:06
Did you try something like:
QHeaderView *header = myTreeWidget->header();
QPushButton *button = new QPushButton("PushMe", header);
QHBoxLayout *layout = new QHBoxLayout(header);
layout->addStretch();
layout->addWidget(button);
I don't know if this works, I'm just spitballing here :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.