Bonjour,
je veux afficher une map dans une QWebEngineView apr�s r�cup�ration de diff�rentes coordonn�es gps.
C�t� Javascript, j'utilise les exemples tir�s de https://leafletjs.com/examples/quick-start et https://nouvelle-techno.fr/articles/...sur-votre-site
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 view = new QWebEngineView(parent); QUrl url = QUrl::fromLocalFile("C:/Users/SNIR2/Desktop/tstQt1/devHtml/index.html"); view->load(url); QWidget *widget = new QWidget(this); widget->setGeometry(QRect(0,0, view->width(), view->height())); widget->setContentsMargins(0, 0, 0, 0); widget->setStyleSheet("padding:0px;""margin:0px;""border-width:1px;""border-color:black;""background-color:yellow;"); QVBoxLayout *layout = new QVBoxLayout(widget); layout->setSizeConstraint(QLayout::SetFixedSize); layout->setGeometry(QRect(0,0, view->width(), view->height())); layout->setSpacing(0); layout->setMargin(0); layout->setContentsMargins(0, 0, 0, 0); layout->addWidget(view, 0, Qt::AlignCenter); widget->setLayout(layout); widget->show();
Sur un PC windows10, Qt Creator 4.15.1 bas� sur Qt 5.15.2 (MSVC 2019 64 bits), �a fonctionne parfaitement.
Sur un PC windows10, Qt Creator 4.15.2 Bas� sur Qt 5.15.2 (MSVC 2019, 64 bit) (�a fait pas beaucoup de diff�rences...), �a ne fonctionne pas et j'ai les erreurs suivantes que je ne sais pas interpr�ter:
[4444:5160:0330/173709.363:WARNING:gpu_process_host.cc(558)] !GpuDataManagerImpl::GpuProcessStartAllowed()
[4444:5160:0330/173709.363:WARNING:gpu_process_host.cc(558)] !GpuDataManagerImpl::GpuProcessStartAllowed()
Received fatal exception EXCEPTION_BREAKPOINT
Quelqu'un a une id�e???
Merci.
Partager