Open nihenniuma opened 1 year ago
libQGLViewer-2.9.1
@nihenniuma I ran into the same problem when building on Apple M2 Pro (clang x64, macosx13.3, qt 5.9.9). The explicit screen selection helped me. This may not work for multi-screen systems. You will need to select a specific screen.
QScreen *screen = QGuiApplication::primaryScreen();
For example:
camera->setDevicePixelRatio(screen->devicePixelRatio());
@GillesDebunne
it seems that the screen()
function is not available in a UNIX-environment. Is explicit screen selection enough, as I presented above?
qglviewer.cpp: In member function'void QGLViewer::setCamera(qglviewer::Camera*)': qglviewer.cpp:684:14: error: 'screen' was not declared in this scope;did you mean 'QScreen'?