Die Suche ergab 3 Treffer
- 24. Februar 2008 18:13
- Forum: Qt Programmierung
- Thema: quadratische Label -> setHeightForWidth
- Antworten: 4
- Zugriffe: 3561
naja, setGeometry im resizeEvent aufzurufen is' nich grad das beste (ruft ja selber wieder resizeEvent auf), hab's trotzdem ma' gemacht ... is' besser als vorher aber nich' so wie's sein soll kann man nich' schon beim erstellen des GridLayouts sagen das alle Elemente darin gleich viel Platz verbrauc...
- 24. Februar 2008 16:15
- Forum: Qt Programmierung
- Thema: quadratische Label -> setHeightForWidth
- Antworten: 4
- Zugriffe: 3561
- 24. Februar 2008 15:01
- Forum: Qt Programmierung
- Thema: quadratische Label -> setHeightForWidth
- Antworten: 4
- Zugriffe: 3561
quadratische Label -> setHeightForWidth
ich brauche dynamische quadratische Label und jemand hat mir gesagt das man dafür setHeightForWidth nutzten kann ... CellView(Cell*cell,QWidget *parent) : QLabel(parent),_cell(cell) { [...] QSizePolicy policy(QSizePolicy::Expanding, QSizePolicy::Expanding); policy.setHeightForWidth(true); setSizePol...