Ich arbeite jetzt seit drei Wochen mit der QT Libary, also ich bin noch ein QT Neuling. Bis jetzt konnte ich eigentlich alle Probleme mit der QT Docu und diesem Forum lösen. Mein jetztiges Problem konnte ich bis jetzt nicht lösen.
Ich habe mehrer Checkboxen in eine GroupBox zusammen gefügt. Diese GroupBox habe ich dann in ein Gridlayout zusammen gefügt. Ich möchte nun auf die einzelnen Widget mit dem Befehl
Code: Alles auswählen
grid->itemAt(grid->count());Nur wenn ich QLayoutItem Initalisieren möchte
Code: Alles auswählen
QLayoutItem Item;
Item = new QLayoutItem();
1>.\Annotation_window.cpp(19) : error C2259: 'QLayoutItem' : cannot instantiate abstract class
1> due to following members:
1> 'QSize QLayoutItem::sizeHint(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(69) : see declaration of 'QLayoutItem::sizeHint'
1> 'QSize QLayoutItem::minimumSize(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(70) : see declaration of 'QLayoutItem::minimumSize'
1> 'QSize QLayoutItem::maximumSize(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(71) : see declaration of 'QLayoutItem::maximumSize'
1> 'Qt::Orientations QLayoutItem::expandingDirections(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(72) : see declaration of 'QLayoutItem::expandingDirections'
1> 'void QLayoutItem::setGeometry(const QRect &)' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(73) : see declaration of 'QLayoutItem::setGeometry'
1> 'QRect QLayoutItem::geometry(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(74) : see declaration of 'QLayoutItem::geometry'
1> 'bool QLayoutItem::isEmpty(void) const' : is abstract
1> c:\qt\4.8.1\include\qtgui\../../src/gui/kernel/qlayoutitem.h(75) : see declaration of 'QLayoutItem::isEmpty'
Ich verwende den Compiler von Visual Studio C++ Express 2008.
Danke für eure Hilfe im Vorraus
Mit freundlichen
Stom