我要做一个GPS导航系统,现在想先实现显示地图,不知道怎么搞的地图显示不出来,大家帮忙看看这段代码,不胜感激!
this->setObjectName(QString::fromUtf8("GPS"));
this->resize(240, 320);
this->setWindowIcon(QIcon());
centralwidget = new QWidget(this);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
graphicsView = new QGraphicsView(centralwidget);
graphicsView->setObjectName(QString::fromUtf8("graphicsView"));
graphicsView->setGeometry(QRect(0, 0, 240, 291));
graphicsView->setBackgroundBrush(QPixmap("ny.png"));
graphicsView->show();