Here it is
Here it is
maybe we do need it!!! I got exactly the same problem with DevQt project manager (all those who tested may have noticed) and I didn't find any way to fix it! Looks like a Qt issue (maybe only on M$ Win but still a Qt issue)...![]()
Current Qt projects : QCodeEdit, RotiDeCode
This is not a minimal compilable example. One can hardly to anything with a complex, yet not using layouts window.Originally Posted by Arthur
I comment how I solve this problem: I declare one additional column at the end of the tree widget and I let it empty (it's a bit ugly but in this way always appears the scroll bar when is needed and also if you hide the header it's not noticed)
Last edited by SkripT; 14th April 2006 at 18:25.
It should be achievable if you resize the column. Either by calling resizeColumnToContents (or something like that) or QHeaderView::resizeSection(). One of them will probably fix the issue. Qt behaviour is fine -- it is not the view contents which doesn't fit on the viewport (which would mean a scrollbar has to be added), it is the column which is too narrow to fit contents.
Well, this is exactly nothing more than a simple project containing the widget layout where the problem occurs. If I just put a treeview on a form, it will probably work...Originally Posted by wysota
There is no layout there. Try resizing the window. The form (and other widgets too) is completely unnecessary, it would be better if there was only the treewidget there:Originally Posted by Arthur
Qt Code:
#include <QApplication> #include <QTreeWidget> #include <QStringList> int main(int argc, char **argv){ QTreeWidget tw; // ... some lines here, like: tw.insertTopLevelItem(0, ); tw.show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
That's a minimal compilable example![]()
Bookmarks