dev/QT
-
내 Qt 플러그인이 동작하지 않는 100가지 이유dev/QT 2013. 2. 20. 11:40
http://canvoki.net/Codders/qtpluginnotloading.html 제목처럼 100가지는 아니지만 기본적으로 체크해야할 7가지를 설명하고 있다.A symbol is missingNot at the proper pathColiding librariesNot the proper compilation modeBad init xmlMissing Q_OBJECTThings that do not interfer plugin loading
-
QToolBar 에서 extension button 에 스타일 적용하기dev/QT 2013. 2. 1. 15:40
http://stackoverflow.com/questions/11223038/what-are-the-properties-of-the-qtoolbar-style-that-i-can-change툴바에 포함된 버튼이 화면에 나오지 않을경우 툴바의 끝에 나타나는 버튼인 extension button 의 스타일을 적용할 수 있다.QToolButton#qt_toolbar_ext_button위와 같이 소스내부에 지정된 object name 이 있어 접근이 가능하다.
-
Qt Creator 디자이너에 Custom Widget 보이기dev/QT 2012. 8. 6. 19:42
Qt 의 플러그인 방식으로 개발한 커스텀 위젯을 플러그인 디렉토리에 넣으면 Qt Designer 의 도구상자자에 커스텀 위젯이 나타나고 드래그&드롭으로 ui 에 올려놓을수 있어 디자인시 도움이 된다.그런데 동일해 보이는 Qt Creator 의 디자이너에서는 해당 커스텀 위젯이 나타나지 않는다.http://qt-project.org/forums/viewthread/6524/ 이는 Qt Creator 의 소스버전을 받아 빌드를 한 후 빌드 결과물로 나온 Qt Creator 를 실행하면 나타난다.그런데 이때는 또다른 사소한 몇몇 문제가 생기기도 한다 -_-;; (qch 헬프 파일 등록이 안되는...)
-
Custom Widget 의 Style Sheet 적용dev/QT 2012. 7. 23. 15:25
우선 결론은 안된다.http://qt-project.org/forums/viewthread/5882 Qt 가 제공하는 widget 의 조합이 아닌 경우에는 qss 를 통한 widget 의 style sheet 가 적용이 안된다.따라서 paint 이벤트를 재정의 해서 직접 원하는 그리기 코드를 직접 구현해주어야 한다. qss 를 이용한 Qt 의 방식이 편하긴 하지만 무한한 자유도가 있는것은 아니다.하지만 기존 widget 의 qss 지원만 해도 충분히 매력적인것은 사실이다. ps.참고자료Qt Style Sheets and Custom Painting ExampleHow can my stylesheet account for custom properties?
-
QPainter::begin: Paint device returned engine == 0, type: 1dev/QT 2012. 4. 24. 16:56
http://qt-project.org/doc/qt-4.8/qpainter.html warn 으로 검색해보면 아래와 같은 구문이 있다.Warning: When the paintdevice is a widget, QPainter can only be used inside a paintEvent() function or in a function called by paintEvent(); that is unless the Qt::WA_PaintOutsidePaintEvent widget attribute is set. On Mac OS X and Windows, you can only paint in a paintEvent() function regardless of this attribute's settin..
-
install Qt in Macdev/QT 2012. 4. 17. 15:25
맥에서 Qt 를 설치하는데 다음과 같은 오류로 설치가 안된다.You need C++ compiler to be able to install QT SDK. Please install latest version Xcode first before invoking this installer아래 사이트에서 해결책을 알려준다.http://malypoeurplong.wordpress.com/2012/04/15/installing-qt-on-mac-os-x/ 요약하자면 xcode 에서 Command Line Tools 를 설치하면 됨.