Die Suche ergab 2 Treffer
- 20. September 2007 14:25
- Forum: Qt Programmierung
- Thema: [gelöst] QVariant <-> QPolygonF
- Antworten: 4
- Zugriffe: 4058
Hey habs doch hinbekommen.... ging doch mittels qRegisterMetaType, musste bloss QVariant::setValue benutzen, sowie Q_DECLARE_METATYPE(QPolygonF); Sieht folgender maßen aus: #include <QVariant> #include <QPolygonF> Q_DECLARE_METATYPE(QPolygonF); .... void irgendneFunktion() { qRegisterMetaType<QPolyg...
- 17. September 2007 18:10
- Forum: Qt Programmierung
- Thema: [gelöst] QVariant <-> QPolygonF
- Antworten: 4
- Zugriffe: 4058
[gelöst] QVariant <-> QPolygonF
Hab da mal ne Frage. Ist es möglich ein QPolygonF als QVariable zu speichern? QPolygon geht ja ohne Probleme... Also so zb: QPolygonF points; QVariant variant(points); kommt dann der Fehler (is ja auch klar da es ja au net in der Doku steht das es gehen würd) QVariant::QVariant(QVariant::Type)' : ca...