Jimmy2775
2nd March 2006, 20:58
Hi there. I am new to Qt and was hoping to get some advice.
I am trying to create a custom widget that consists of multiple QTableViews, organized using a QVBoxLayout. Since this widget could potentially grow quite large, I would like to be able to specify a size for the control and be able to scroll horizontally/vertically as required to view the QTableViews.
I am encountering some difficulties implementing this, however, and am getting a little frustrated with the lack of information available regarding Qt4's QScrollArea. If there is any info regarding this topic on the internet, I would appreciate a link to it.
More specifically, I have a few questions about my design and implementation:
Is it better to put the widget in a QScrollArea, or to have the widget inherit from QScrollArea/QAbstractScrollArea
Is there any documentation regarding the use of QSizeHint and QSizePolicy? I have read the official documentation but the use of these is still not clear to me.
Any info is appreciated.
Jimmy
I am trying to create a custom widget that consists of multiple QTableViews, organized using a QVBoxLayout. Since this widget could potentially grow quite large, I would like to be able to specify a size for the control and be able to scroll horizontally/vertically as required to view the QTableViews.
I am encountering some difficulties implementing this, however, and am getting a little frustrated with the lack of information available regarding Qt4's QScrollArea. If there is any info regarding this topic on the internet, I would appreciate a link to it.
More specifically, I have a few questions about my design and implementation:
Is it better to put the widget in a QScrollArea, or to have the widget inherit from QScrollArea/QAbstractScrollArea
Is there any documentation regarding the use of QSizeHint and QSizePolicy? I have read the official documentation but the use of these is still not clear to me.
Any info is appreciated.
Jimmy