2013-03-18 1 views

답변

2

글꼴 크기 속성의 Qt Style Sheets Reference는 말한다 : Qt는이 버전에서

는 만 PT 및 픽셀 측정이 지원됩니다.

그래서 아직 가능하지 않습니다.

0

글쎄, 코드를 통해 값을 스케일링 한 다음 스타일 시트에 다시 삽입 해보십시오.

//nFontSize and nSomeFactor are your base font size and factor 
widgetYouWantToSetFontSizeFor->setStyleSheet("font-size: "+QString::number(scaleUsingSomeFactor(nFontSize, nSomeFactor))+"pt;"); 

비록 내가 무엇을 찾고 있는지 잘 모르겠다.

+0

이 질문에 대한 답변을 제공하지 않습니다. 충분한 [평판] (https://stackoverflow.com/help/whats-reputation)이 있으면 [모든 게시물에 주석 달기] (https://stackoverflow.com/help/privileges/comment) 할 수 있습니다. 대신, [질문자의 설명이 필요없는 답변을 제공하십시오] (https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can- i-do- 대신). - [리뷰에서] (리뷰/저품절 포스트/17402530) –

관련 문제