Hi Stefan, thanks for the quick response! Ok, I also guess that it is the right cocktail of updates (Qt, VTK, render window) that did the trick.
Should anybody have another idea how this can be fixed without an update to the latest MITK release, I'd be very interested. Best, Daniel > Dinkelacker, Stefan <s.dinkelac...@dkfz-heidelberg.de> hat am 14.04.2021 > 11:09 geschrieben: > > > Hi Daniel, > > I would have hinted you at the Qt application flags but you are already > familiar with them obviously. :-) Maybe someone else have an idea. I believe > that the click-offset is something that I saw in a Phabricator task but it > must be very long ago. Regarding the VTK base class changes of > QmitkRenderWindow: That's mainly because of API-changes in VTK 9 compared to > VTK 8. That being said, I guess the newer VTK version could also play an > important role here. > > Best, > Stefan > ________________________________________ > Von: Daniel Maleike <c...@maleike.de> > Gesendet: Dienstag, 13. April 2021 15:07 > An: mitk-users@lists.sourceforge.net > Betreff: [mitk-users] High resolution / 4K displays and application scaling > > Hi MITK team, > > first a belated congratulation for the release! Great to see this happen! > > I have a problem currently with my customized workbench based on the > 2018.04.2 release. I see that the new release workbench does not exhibit the > problem, so perhaps you also encountered and fixed it. > > The problem is about high resolution displays that I see in newer laptops. > Without changing anything to the code, Qt renders all buttons very small > (same pixel size but tiny real size because of the high resolution). I found > and option "QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling, > true);" and an environment variable QT_SCREEN_SCALE_FACTORS to help "old" > applications scale nicely. I am using the environment variable. > > When doing so the application looks nice, but I get an offset when clicking > inside 2D render windows. You click somewhere but the crosshair is then > positioned a good portion away from the clicked position. > > My questions: > - did you observe this behavior? > - did you change anything to the code to handle this? > - I noticed you changed the VTK Qt render window in QmitkRenderWindow. Is > this related / required / ..? > > Any thought on this are highly appreciated. > > Best regards, > Daniel > > > _______________________________________________ > mitk-users mailing list > mitk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mitk-users _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users