java equivalent panels in qt
I would like to know the Java panel equivalent in开发者_如何学JAVA QT. I mean which class do we need to use in QT, i.e. qframe
or qwidget
. I need to add many panels to my QT mainwindow.
QFrame
, QScrollArea
, etc. have properties that handle panel appearance and are suitable for component containers and form layout.
QWidget
has no frameShape()
, frameShadow()
, or lineWidth()
, but it has layout and size operation methods, so it can also be used as a panel if you do not need borders, scroll, docking or other additional behavior.
精彩评论