Comments (10)
following: https://unix.stackexchange.com/questions/481063/
works
from nvidia-system-monitor-qt.
QFontMetrics::horizontalAdvance
was introduced in Qt 5.11. So, switching to Qt 5.11+ will solve the problem
from nvidia-system-monitor-qt.
Thanks for the report! What Qt version you installed?
from nvidia-system-monitor-qt.
Qt5 :)
from nvidia-system-monitor-qt.
What version of Qt5?) (E.g 5.13 etc)
from nvidia-system-monitor-qt.
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.
I am having same issue
from nvidia-system-monitor-qt.
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.
qmake --version
accurately outputs 5.13?
from nvidia-system-monitor-qt.
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)
- Tracking Power Use and Temperature HOT 2
- Question: utilization accuracy HOT 2
- CMake identifies wrong source directory using README installation instructions HOT 2
- GPU Count 0, curve not showing on the Utilization tab HOT 2
- 1.3 does not launch on ubuntu 20.04 HOT 7
- Segmentation fault (core dumped) HOT 13
- Add More UI Elements HOT 2
- Installer worked coding not giving result. help me !!! HOT 4
- How to build with github action ? HOT 1
- Missing C+G processes HOT 1
- Feature request: Make the window scrollable HOT 6
- publish rpm builds to copr repo HOT 1
- memory usage isn't as expected HOT 1
- GPU memory use values different to ones in nvidia-smi HOT 2
- Track decoder/encoder usage HOT 1
- compile on Mint 19.3 fails HOT 2
- doesn't work for Acer Aspire E1 571G (Geforce 710m + i3 3110m in nvidia-optimus) at all HOT 2
- Resizing graphs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvidia-system-monitor-qt.