Git Product home page Git Product logo

Comments (10)

developomp avatar developomp commented on May 29, 2024 2

following: https://unix.stackexchange.com/questions/481063/
works

from nvidia-system-monitor-qt.

congard avatar congard commented on May 29, 2024 1

QFontMetrics::horizontalAdvance was introduced in Qt 5.11. So, switching to Qt 5.11+ will solve the problem

from nvidia-system-monitor-qt.

congard avatar congard commented on May 29, 2024

Thanks for the report! What Qt version you installed?

from nvidia-system-monitor-qt.

developomp avatar developomp commented on May 29, 2024

Qt5 :)

from nvidia-system-monitor-qt.

congard avatar congard commented on May 29, 2024

What version of Qt5?) (E.g 5.13 etc)

from nvidia-system-monitor-qt.

developomp avatar developomp commented on May 29, 2024

I'm using Qt5 version 5.9.7 installed with pip

(base) pomp@pomp:~$ qmake --version
QMake version 3.1
Using Qt version 5.9.7 in /home/pomp/anaconda3/lib

Is there anything else that I can help?

from nvidia-system-monitor-qt.

wjade avatar wjade commented on May 29, 2024

I am having same issue

from nvidia-system-monitor-qt.

developomp avatar developomp commented on May 29, 2024

nope

(base) pomp@pomp:~/nvidia-system-monitor-qt$ pip install pyqt5==5.13
Requirement already satisfied: pyqt5==5.13 in /home/pomp/anaconda3/lib/python3.6/site-packages (5.13.0)
Requirement already satisfied: PyQt5_sip<13,>=4.19.14 in /home/pomp/anaconda3/lib/python3.6/site-packages (from pyqt5==5.13) (4.19.19)
(base) pomp@pomp:~/nvidia-system-monitor-qt$ qmake qnvsm.pro
(base) pomp@pomp:~/nvidia-system-monitor-qt$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../anaconda3/include/qt -I../anaconda3/include/qt/QtWidgets -I../anaconda3/include/qt/QtGui -I../anaconda3/include/qt/QtCore -Ibuild -I../anaconda3/mkspecs/linux-g++ -o build/utilization.o src/utilization.cpp
src/utilization.cpp: In function ‘void drawGrid(QWidget*, QPainter*)’:
src/utilization.cpp:33:13: error: ‘class QFontMetrics’ has no member named ‘horizontalAdvance’
     x0 = fm.horizontalAdvance(text);
             ^~~~~~~~~~~~~~~~~
src/utilization.cpp:37:13: error: ‘class QFontMetrics’ has no member named ‘horizontalAdvance’
     x0 = fm.horizontalAdvance(text);
             ^~~~~~~~~~~~~~~~~
src/utilization.cpp: In function ‘void drawStatusObjects(std::vector<QRect, std::allocator<QRect> >&, UtilizationData*, QPainter*)’:
src/utilization.cpp:74:24: error: ‘class QFontMetrics’ has no member named ‘horizontalAdvance’
     int textWidth = fm.horizontalAdvance("100%"); // because max width will be only at 100%
                        ^~~~~~~~~~~~~~~~~
Makefile:1726: recipe for target 'build/utilization.o' failed
make: *** [build/utilization.o] Error 1
(base) pomp@pomp:~/nvidia-system-monitor-qt$ 

from nvidia-system-monitor-qt.

congard avatar congard commented on May 29, 2024

qmake --version accurately outputs 5.13?

from nvidia-system-monitor-qt.

developomp avatar developomp commented on May 29, 2024

aah you're right

(base) pomp@pomp:~/nvidia-system-monitor-qt$ qmake --version
QMake version 3.1
Using Qt version 5.9.7 in /home/pomp/anaconda3/lib

silly me

from nvidia-system-monitor-qt.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.