https://bugs.kde.org/show_bug.cgi?id=378156
Bug ID: 378156 Summary: GeoDataPlacemarks are not repainted properly after setStyle() Product: marble Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: marble-b...@kde.org Reporter: rko...@piap.pl Target Milestone: --- Created attachment 104758 --> https://bugs.kde.org/attachment.cgi?id=104758&action=edit Bug reproduction Hi, Marble branch: Applications/17.04 Platform: Ubuntu 16.10 I create two or more placemarks and later I update their icons by providing new, unique QImage objects. I expect all placemarks to have those unique icons but they are all the same. This is how I update the icons: QSharedPointer<GeoDataStyle> style(new GeoDataStyle(*place->style())); auto image = QImage("/path/to/image"); style->iconStyle().setIcon(image); place->setStyle(style); widget->model()->treeModel()->updateFeature(place); There is a workaround for this bug - add this line with a fake, unique path for each image: style->iconStyle().setIconPath("/fake/unique/path/"); See the whole code in the attachment. Best regards, Rafał -- You are receiving this mail because: You are watching all bug changes.