Die Suche ergab 13 Treffer
- 9. Oktober 2009 12:41
- Forum: Qt Programmierung
- Thema: QTextEdit bestimmte Wörter farbig hervorheben
- Antworten: 17
- Zugriffe: 8630
- 1. Oktober 2009 10:34
- Forum: Qt Programmierung
- Thema: gelöst
- Antworten: 3
- Zugriffe: 2416
- 1. Oktober 2009 10:30
- Forum: Qt Programmierung
- Thema: DragAndDrop bei QTreeView
- Antworten: 2
- Zugriffe: 2725
reicht nicht...
du musst mimeData und dropMimeDate implementieren... hier ein älteres Beispiel von mir: QMimeData * FMITreeModel::mimeData(const QModelIndexList & indexes) const { QMimeData * ret = new QMimeData; long a = (long)indexes.at(0).internalPointer(); QString result; QTextStream(&result) << a; qDeb...
- 10. September 2009 12:34
- Forum: Qt Programmierung
- Thema: Problem mit Model-Erstellung
- Antworten: 4
- Zugriffe: 2612
- 7. August 2009 10:16
- Forum: Einfach Qt
- Thema: [gelöst] Qt 4.5 QTreeView und selection-background-color
- Antworten: 1
- Zugriffe: 1994
ok - Lösung gefunden: Stylesheets sind richtig: QTreeView::item:selected:active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #9494F7, stop: 1 #6767AB); } QTreeView::item:selected:!active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ABAEFF, stop: 1 #CACBFF); }
- 7. August 2009 08:29
- Forum: Einfach Qt
- Thema: [gelöst] Qt 4.5 QTreeView und selection-background-color
- Antworten: 1
- Zugriffe: 1994
[gelöst] Qt 4.5 QTreeView und selection-background-color
Hallo, es gibt ja die möglichkeit per Stylesheet die Hintergrundfarbe einer Selektion festzulegen -> selection-background-color Leider ist es dann so, dass auch wenn das element nicht den Focus hat, diese Farbe angezeigt wird. Im Standardverhalten ohne Stylesheet wird aber eine Selektion ohne Focus ...
- 4. August 2009 14:30
- Forum: Qt Programmierung
- Thema: Designerfrage zu Splitter
- Antworten: 8
- Zugriffe: 5602
- 29. Juli 2009 16:22
- Forum: Qt Programmierung
- Thema: QTableWidget & Drop
- Antworten: 1
- Zugriffe: 2154
- 23. Juli 2009 10:31
- Forum: Qt Programmierung
- Thema: QTreeView - Drag & Drop - dropIndicatorPosition
- Antworten: 6
- Zugriffe: 6218
- 22. Juli 2009 14:36
- Forum: Qt Programmierung
- Thema: QTreeView - Drag & Drop - dropIndicatorPosition
- Antworten: 6
- Zugriffe: 6218
- 14. Juli 2009 16:16
- Forum: Qt Programmierung
- Thema: QTreeView - Drag & Drop - dropIndicatorPosition
- Antworten: 6
- Zugriffe: 6218
- 7. Juli 2009 14:31
- Forum: Qt Programmierung
- Thema: Probleme mit der Position von QGraphicsItems
- Antworten: 2
- Zugriffe: 2413
Anscheinend gelöst:
http://www.qtcentre.org/forum/f-qt-prog ... 22254.html
http://www.qtcentre.org/forum/f-qt-prog ... 22254.html
- 26. Juni 2009 10:42
- Forum: Qt Programmierung
- Thema: TreeView filtern
- Antworten: 5
- Zugriffe: 2987
Ich hatte mittlerweile das mit den einzelnen auch raus, aber bei dem Problem, was du mir jetzt noch erklärt hast bin ich hängen geblieben. Also vielen Dank! Jetzt klappts :D kleiner Tip: ergänze setFilter um QDir::NoDotAndDotDot model->setFilter(QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot); ...