qt creator에서 높은 dpi를 적용하는 방법에 대해서 질문 있습니다.

kyuho6942의 이미지

현재 우분투 18 환경에 qhd 모니터를 사용하고 있습니다. qt로 프로그래밍을 하기 위해 qt creator를 설치해서 하는데 글자가 너무 작게 보여서 고민입니다 인터넷에서 찾아봤는데도 잘 나오지 않아서 이렇게 질문 드립니다 ㅠㅠ

shint의 이미지


구글에서 qt dpi / qt font 로 검색

운영체제. 모니터. 프로그램. 모두 각각 따로따로 DPI / 해상도 / 색상표 / 폰트 가 있습니다.

- GTK
/etc/fonts/local.conf
/etc/fonts/conf.d
- Font
- DPI
- Scale 크기 변환
- 좌표변환 / 시점변환
-
모니터 디스플레이 해상도
프로그램 해상도 (렌더링 방식)
운영체제 그래픽 카드 해상도

High DPI Displays
http://doc.qt.io/qt-5/highdpi.html

Changing DPI scaling size of display make Qt application's font size get rendered bigger
https://stackoverflow.com/questions/20464814/changing-dpi-scaling-size-of-display-make-qt-applications-font-size-get-rendere

Different approaches of tackling high DPI issues for Qt and OpenSceneGraph/OpenGL applications
https://vicrucann.github.io/tutorials/osg-qt-high-dpi/

[Development] Cross-platform high-DPI Qt tech preview
http://lists.qt-project.org/pipermail/development/2015-June/021631.html

Thread: Question about screen resolution, dpi and font size
http://www.qtcentre.org/threads/65769-Question-about-screen-resolution-dpi-and-font-size

SOLVED Where does Qt get the default application font?
https://forum.qt.io/topic/86872/where-does-qt-get-the-default-application-font

[Qt4] "맑은 고딕" 폰트 사용하기
http://linuxspot.tistory.com/132

UNSOLVED Qt Designer on high DPI screens
https://forum.qt.io/topic/77740/qt-designer-on-high-dpi-screens/3

QT5 apps don't obey normal Linux fontconfig rules
https://bugreports.qt.io/browse/QTBUG-48632

QtWS15- How to Develop with Qt for Multiple Screen Resolutions and Increase, Christian Feldbacher
https://www.youtube.com/watch?v=nNyhsdX6BsI

Windows 7 in 7: High DPI Awareness in Windows 7
https://www.youtube.com/watch?v=XGxqY1KRlOA

Qt for Mobile x-platform Development
https://ekkescorner.wordpress.com/2016/03/24/qt-for-mobile-x-platform-development/

UI Scalability
https://www.youtube.com/watch?v=LxITYcdWhuo

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

익명 사용자의 이미지

https://wiki.archlinux.org/index.php/HiDPI#Qt_5

우분투 기본 그놈이라면 저 환경 변수가 제대로 설정이 안 되어 있을 수도 있습니다.

kyuho6942의 이미지

Qt가 설치된 폴더 안의 bin 폴더 안에 qtcreater.sh 이라는 스크립트 파일이 있습니다.
그것을 vim 으로 열어서 안에
export QT_SCALE_FACTOR=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=2
을 추가하고 qtcreator 대신 qtcreater.sh을 실행하면 잘 나왔습니다. 개인 컴퓨터 스펙에 따라 위에 수치는 조절해주시면 됩니다

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.