이전 포스팅/Qt 사용
-
[QT 사용] QPlalette로 QLabel rgb컬러 넣기이전 포스팅/Qt 사용 2018. 5. 16. 03:52
test_label = new QLabel(this); test_label->setGeometry (0, 0, 1024, 768); test_label->setAutoFillBackground(true); test_label->setPalette(sample_palette); test_label->setBackgroundRole(QPalette::Window); QPalette sample_palette; sample_palette.setColor(QPalette::Window, QColor(250,0,0,150)); q.fillRect(QRect(128, 257, 106, 104),QColor(31,28,28));QColor(250,0,0,150)); QColor(R,G,B,투명도));
-
[QT 사용] QFont 폰트 적용하기이전 포스팅/Qt 사용 2018. 4. 27. 17:45
개발환경 우분투 16.04.4 LTS 1. /usr/sharefonts/ 위치에 (사용하고자 하는 글꼴).ttf 를 이동한다[f.g ] 구글 영문 폰트 Robote 2. /usr/sharefonts/roboto 폴더에서 글꼴 정보 캐시를 빌드한다.[명령어 ] fc-cache -f -v 3. 완료가 되면 아래와 같이 new cache contents: 18 fonts !!![f.g ] 4. reboot 후 사용함 5. 아래와 같이 라벨에 폰트 적용해서 사용아래 Styles 중에 Thin / Light / Medium / Bold / Black 사용 가능 Regular 안됨.. 왜지? https://fonts.google.com/specimen/Roboto