Russian Qt Forum
Ноябрь 22, 2024, 18:25 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1]   Вниз
  Печать  
Автор Тема: Подключил к проекту библиотеку QCustomPlot после получил предупреждения  (Прочитано 1541 раз)
Alexey_Golubev_92
Новичок

Offline Offline

Сообщений: 8


Просмотр профиля
« : Август 11, 2019, 08:24 »

Привет.

Подключил библиотеку QCustomPlot как написано в http://blog.harrix.org/article/1813 после получил предупреждения

Код:
tion28-pro/qcustomplot.cpp
../tion28-pro/qcustomplot.cpp: In member function ‘virtual QPointF QCPItemRect::anchorPixelPosition(int) const’:
../tion28-pro/qcustomplot.cpp:28765:65: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     case aiTop:         return (rect.topLeft()+rect.topRight())*0.5;
                                                                 ^~~
In file included from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qrect.h:46:0,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/qpainter.h:46,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/QPainter:1,
                 from ../tion28-pro/qcustomplot.h:54,
                 from ../tion28-pro/qcustomplot.cpp:26:
/home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qpoint.h:349:22: note: candidate 1: const QPointF operator*(const QPointF&, qreal)
 inline const QPointF operator*(const QPointF &p, qreal c)
                      ^~~~~~~~
In file included from ../tion28-pro/qcustomplot.cpp:26:0:
../tion28-pro/qcustomplot.h:439:26: note: candidate 2: const QCPVector2D operator*(const QCPVector2D&, double)
 inline const QCPVector2D operator*(const QCPVector2D &vec, double factor) { return QCPVector2D(vec.mX*factor, vec.mY*factor); }
                          ^~~~~~~~
../tion28-pro/qcustomplot.cpp:28767:69: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     case aiRight:       return (rect.topRight()+rect.bottomRight())*0.5;
                                                                     ^~~
In file included from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qrect.h:46:0,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/qpainter.h:46,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/QPainter:1,
                 from ../tion28-pro/qcustomplot.h:54,
                 from ../tion28-pro/qcustomplot.cpp:26:
/home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qpoint.h:349:22: note: candidate 1: const QPointF operator*(const QPointF&, qreal)
 inline const QPointF operator*(const QPointF &p, qreal c)
                      ^~~~~~~~
In file included from ../tion28-pro/qcustomplot.cpp:26:0:
../tion28-pro/qcustomplot.h:439:26: note: candidate 2: const QCPVector2D operator*(const QCPVector2D&, double)
 inline const QCPVector2D operator*(const QCPVector2D &vec, double factor) { return QCPVector2D(vec.mX*factor, vec.mY*factor); }
                          ^~~~~~~~
../tion28-pro/qcustomplot.cpp:28768:71: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     case aiBottom:      return (rect.bottomLeft()+rect.bottomRight())*0.5;
                                                                       ^~~
In file included from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qrect.h:46:0,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/qpainter.h:46,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/QPainter:1,
                 from ../tion28-pro/qcustomplot.h:54,
                 from ../tion28-pro/qcustomplot.cpp:26:
/home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qpoint.h:349:22: note: candidate 1: const QPointF operator*(const QPointF&, qreal)
 inline const QPointF operator*(const QPointF &p, qreal c)
                      ^~~~~~~~
In file included from ../tion28-pro/qcustomplot.cpp:26:0:
../tion28-pro/qcustomplot.h:439:26: note: candidate 2: const QCPVector2D operator*(const QCPVector2D&, double)
 inline const QCPVector2D operator*(const QCPVector2D &vec, double factor) { return QCPVector2D(vec.mX*factor, vec.mY*factor); }
                          ^~~~~~~~
../tion28-pro/qcustomplot.cpp:28770:67: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     case aiLeft:        return (rect.topLeft()+rect.bottomLeft())*0.5;
                                                                   ^~~
In file included from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qrect.h:46:0,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/qpainter.h:46,
                 from /home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtGui/QPainter:1,
                 from ../tion28-pro/qcustomplot.h:54,
                 from ../tion28-pro/qcustomplot.cpp:26:
/home/alexey/work1/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/QtCore/qpoint.h:349:22: note: candidate 1: const QPointF operator*(const QPointF&, qreal)
 inline const QPointF operator*(const QPointF &p, qreal c)
                      ^~~~~~~~
In file included from ../tion28-pro/qcustomplot.cpp:26:0:
../tion28-pro/qcustomplot.h:439:26: note: candidate 2: const QCPVector2D operator*(const QCPVector2D&, double)
 inline const QCPVector2D operator*(const QCPVector2D &vec, double factor) { return QCPVector2D(vec.mX*factor, vec.mY*factor); }
                          ^~~~~~~~
../tion28-pro/qcustomplot.cpp: In member function ‘virtual QPointF QCPItemText::anchorPixelPosition(int) const’:
../tion28-pro/qcustomplot.cpp:29065:64: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     case aiTop:         return (rectPoly.at(0)+rectPoly.at(1))*0.5;

Что с ними делать не ясно и на сколько это критично тоже не ясно.

Процессор imx287 система собрана из buildroot. Qt версии 4,8,7.
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.089 секунд. Запросов: 22.