티스토리

Cakel's Techlog - 공돌이의 끄적임
검색하기

블로그 홈

Cakel's Techlog - 공돌이의 끄적임

cakel.tistory.com/m

새로 시작합니다 ^^ 문의 사항은 cakel@네이버 로 해주세요.

구독자
0
방명록 방문하기
공지 블로그 업데이트가 더디게 진행됩니다. 모두보기

주요 글 목록

  • Object Trees & Ownership (객체 트리들과 소유권) Object Trees & Ownership객체 트리들과 소유권 출처 : https://doc.qt.io/qt-5/objecttrees.htmlOverview요약 QObjects organize themselves in object trees. When you create a QObject with another object as parent, it's added to the parent's children() list, and is deleted when the parent is. It turns out that this approach fits the needs of GUI objects very well. For example, a QShortcut (keyboard shortcut) is a ch.. 공감수 0 댓글수 1 2016. 4. 13.
  • 0081 - 수직 / 수평 레이아웃 지정 참고 영상QT Designer 를 쓰지 않고 QT 내 라이브러리를 사용하여 기본 위젯들을 C++ 코드 상에서 레이아웃 위젯에 의해 묶어서 사용하는 방법을 알아 봅니다.1. 새 Project 를 만듭니다.New File or Project - Application- Qt Widgets Application 을 선택합니다.- Introduction and Project Location 에서는 임의로 Project 명과 저장할 장소를 입력합니다.- Kits 은 기존에 사용하시던 Kit 를 이용하시면 됩니다. (제 경우는 Desktop QT 5.5 MinGW 32bit)- Class Information 는 나중에 삭제 할 거지만 MainWindow 를 그대로 사용합니다.2. 생성한 Projects 에서 다음의.. 공감수 0 댓글수 0 2016. 4. 12.
  • 0071 - HTML 태그를 인식하는 위젯 참고 영상QT 의 GUI 동작에 기여하는 컨트롤인 위젯들은 HTML 태그를 인식하고 있습니다. 이를 실제로 입력하면 어떤 결과가 나오는지 확인 합니다. 1. QT Project 를 생성합니다.Choose a templateProjects : Application / Qt Widgets Application (참고 영상과 다르게 제가 가지고 있는 QT Creator 에서는 Empty Qt Project 는 존재하지 않습니다.)QT Widgets ApplicationName: 007_MinimalCreate in : D:\Work (작업 공간에 따라 다른 곳을 지정하시면 됩니다.)Kit SelectionDesktop Qt 5.5.0 MinGW 32bitDetailsClass Information 에서는 Ba.. 공감수 0 댓글수 0 2015. 12. 17.
  • 0061 - Layout, Tab, Buddy (레이아웃, 탭, 버디) 참고 영상GUI 응용프로그램을 작성하면서 프로그램 제어에 사용되는 컨트롤을 일일이 위치를 맞추는 것은 비효율적입니다. 자동으로 이를 맞춰주는 방법을 알아 봅니다.1. 프로젝트 생성QT Widgets 응용프로그램을 작성합니다.Choose a templateProjects : Application / Qt Widgets ApplicationQT Widgets ApplicationName: 006_MyGuiCreate in : D:\Work (작업 공간에 따라 다른 곳을 지정하시면 됩니다.)Kit Selection 은 기존의 내용을 그대로 따라 가시면 됩니다.Desktop Qt 5.5.0 MinGW 32bitClass Information 에서는 간단하게 응용프로그램을 작성하기 위해 Bass class 를 Q.. 공감수 0 댓글수 0 2015. 12. 10.
  • Policies/Binary Compatibility Examples - 이진 호환성 예제 Policies/Binary Compatibility Examples이진 호환성 예제들 출처 : https://techbase.kde.org/Policies/Binary_Compatibility_Examples This page is meant as examples of things you cannot do in C++ when maintaining binary compatibility. 이 페이지는 이진 호환성을 유지할 때 C++ 에서 할 수 없는 것들에 대한 예제들을 설명합니다.Unexport or remove a class 클래스 내보내기 취소 또는 제거 BeforeAfterclass KDECORE_EXPORT KUrl { // [...] };class KUrl { // [...] };Reason:.. 공감수 0 댓글수 0 2015. 11. 13.
  • Policies/Binary Compatibility Issues With C++ (C++ 에서 이진 호환성 문제들) - 2 Policies/Binary Compatibility Issues With C++ - 2출처 : https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++ Trouble shooting (문제 해결)Adding new data members to classes without d-pointerd-포인터가 없는 클래스들에 새 데이터 맴버를 추가하기If you don't have free bitflags, reserved variables and no d-pointer either, but you absolutely have to add a new private member variable, there are still some possibi.. 공감수 0 댓글수 0 2015. 11. 12.
  • Policies/Binary Compatibility Issues With C++ (C++ 에서 이진 호환성 문제들) - 1 Policies/Binary Compatibility Issues With C++ - 1출처 : https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#DefinitionDefinition (정의)A library is binary compatible, if a program linked dynamically to a former version of the library continues running with newer versions of the library without the need to recompile.재컴파일할 필요 없이 이전 버전의 라이브러리에서 새 버전의 라이브러리를 동적으로 연결할 수 있다면, 그 라이브러리는 이.. 공감수 0 댓글수 0 2015. 11. 11.
  • 0054 - Dr. Memory 로 메모리 누수 확인하기 윈도우의 Visual Studio 에서는 Visual Leak Detector 사용하거나 리눅스의 QT Creator 에서는 Valgrind 를 사용하면 비교적 메모리 누수를 쉽게 찾을 수 있지만, 중간에 위치한 윈도우의 QT Creator 에서 메모리 누수를 찾는데는 기본으로 제공되는 Tool 들로는 찾기가 쉽지 않습니다. 서드 파티 툴인 닥터 메모리 (Dr. Memory) 를 사용하여 메모리 누수를 찾는 방법을 설명 드리겠습니다. 사용법은 경험 했던 다른 메모리 누수 도구들에 비해 아주 간편한 편입니다. 1. http://www.drmemory.org/ 에 가서 프로그램을 설치 합니다. 접근이 어려우면 아래 압축된 파일을 받아서 푼 뒤 설치 합니다. 2. 프로그램을 설치하면 아래와 같이 바탕 화면에 .. 공감수 0 댓글수 0 2015. 11. 10.
  • 0053 - 윈도우에서 QT 응용 프로그램 바로 실행하기 보통 Compile 완료되어 실행할 수 있게 EXE 로 저장된 결과물을 실행하면 아래와 같은 DLL 파일을 못찾는 문제가 나타납니다.필요하는 DLL 파일을 해당 경로에 복사하는 방법이 있지만, 매번 확인하고 작업하는 것은 번거로운 일이기 때문에 아래의 방법으로 해결합니다.검색 기능을 이용해서 필요한 파일이 어디에 위치해 있는지 확인을 합니다.위 결과를 기준으로 DLL 파일이 있는 경로 확인합니다. QT 가 설치된 경로를 기준으로 DLL 파일이 대략 Qt5.5.0\5.5\mingw492_32\bin\mingw492_32 으로 보입니다. 향후 QT 관련 명령줄 (Command Line) 실행에 도움이 되는 Qt5.5.0\Tools\mingw492_32\bin 경로 까지 추가해서 진행하겠습니다.전체 경로를 복.. 공감수 0 댓글수 0 2015. 11. 9.
  • 0052 - 대화 창 더 알아 보기 참고 영상 (약 4분 부터)지난 시간에 연결해서 확인 했던 대화 창에 대해 조금 더 알아보겠습니다.1. 프로젝트 열기지난 시간에 받았던 파일을 사용합니다.2. centralWiget 설정하기Mainwindow 에는 최소한 정보를 표현할 수 있는 센트럴 위젯(Central Widget) 이라고 불리는 하나의 위젯이 있는 것이 좋습니다. 지정하지 않아도 0 (NULL) 으로 지정되어 문제는 안됩니다만 문서에는 있어야 한다고 표시를 하니 다른 특별한 이유가 있어 보입니다.정보를 표시할 위젯을 센트럴 위젯으로 지정하기 위해서는 QMainWidow 의 setCentralWidget 메소드를 이용하면 됩니다. 센트롤 위젯으로 지정이 되면 창 크기에 따라 위젯의 크기가 자동으로 변경되는 등의 혜택을 입게 됩니다.폼 .. 공감수 0 댓글수 0 2015. 9. 25.
  • 0051 - 대화 창 표시하기 참고 영상QT 에서 사용하는 메인 윈도우와 대화창에 대해 설명하고, 메인 윈도우에서 대화창을 호출하는 메뉴 항목과 액션에 대해 알아 보겠습니다.1. 프로젝트 생성Choose a templateProjects : Application / Qt Widgets Application / ChooseQt Widgets ApplicationLocationName : 005_MyWindows / NextKitsDesktop Qt 5.5.0 MinGW 32bit (상황에 따라 다를 수 있습니다.) / NextDetails(그대로 두고) / NextSummary(그대로 두고) / Finish2. 빌드 확인Ctrl + R 을 눌러서 빌드가 되고 창이 뜨는 것을 확인 합니다.3. 메인 윈도우 (Main Window)메인 윈.. 공감수 0 댓글수 0 2015. 9. 21.
  • Creating Shared Libraries (공유 라이브러리 만들기) Creating Shared Libraries공유 라이브러리 만들기 출처 : http://doc.qt.io/qt-5/sharedlibrary.htmlThe following sections list certain things that should be taken into account when creating shared libraries.아래 항목들은 공유 라이브러리들을 만들 때 참고해야 할 것들입니다.Using Symbols from Shared Libraries공유 라이브러리에서 심볼들 (함수, 변수, 클래스...) 을 사용하기 Symbols - functions, variables or classes - contained in shared libraries intended to be used by.. 공감수 0 댓글수 0 2015. 9. 13.
  • 0041 - 시그널과 슬롯 참고 영상QT 에서 시그널과 슬롯() 은 GUI 에서 주로 다루는 객체간의 이벤트들을 주고 받는 동작을 하는데 중요한 역할을 합니다. 지난번에 잠깐 소개해 드렸는데, 조금 더 알아 보도록 하겠습니다.1. 프로젝트 생성 (중복되는 설명은 앞으로 간단하게 진행하겠습니다.)프로젝트 생성은 처음 했을때와 동일하게 진행하되 아래 설정을 따라서 진행합니다.File -> New File or ProjectChoose a template : Qt Widgets ApplicationChoose...Name : 004_myprogressNextKit Selection : Desktop Qt 5.5.0 MingGW 32bit (환경에 따라 다를 수 있음)NextClass Information : 그대로 두기NextProje.. 공감수 1 댓글수 0 2015. 9. 2.
  • 0032 - GUI 프로그래밍 소개 / 위젯 생성과 Event 연결하기 참고 영상 (5분 이후)지난 시간인 0031 - GUI 프로그래밍 소개 / 프로젝트 내 파일 에 이이서 진행합니다.GUI Application 을 구성하는 파일(File) 들을 알아 보았으니 이제 GUI 를 구성하는 컨트롤(Control) 인 위젯(Widget) 을 추가하고 이벤트를 연결하는 방법에 대해서 알아 봅니다.작업 대상은 0031 에서 작업 했었던 내용에 이어서 진행하시면 됩니다. 없다면 아래 링크(Link) 에서 받아서 진행 하시면 됩니다.작업 파일압축을 푸신 후 pro 확장자로 된 파일을 열면 됩니다. 1. Widget 추가파일을 열었으면 디자인(Design) 을 선택하여 Qt Designer 라 불리는 Form 편집기를 엽니다.Design 항목 에서 Widget Box 창에 button 을.. 공감수 1 댓글수 0 2015. 8. 26.
  • Using a Designer UI File in Your Application Using a Designer UI File in Your Application당신의 응용프로그램에 있는 디자이너 UI 파일을 사용하기 출처 : http://doc.qt.io/qt-5/designer-using-a-ui-file.htmlQt Designer UI files represent the widget tree of the form in XML format. The forms can be processed:Qt 디자이너 UI 파일은 위젯 트리 구조를 XML 형식으로 보여주고 있습니다. 폼(양식) 은 다음의 시점에서 처리가 될 수 있습니다.At compile time, which means that forms are converted to C++ code that can be compiled.컴파일.. 공감수 0 댓글수 0 2015. 8. 23.
  • Signals & Slots 소개 Signals & Slots시그널과 슬롯 출처 : http://doc.qt.io/qt-4.8/signalsandslots.htmlSignals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks.시그널과 슬롯은 객체들 간에 통신하는데 사용됩니다. 시그널과 슬롯 메커니즘은 Qt 의 핵심적인 특징이며, 아마도 다른 프레임워크들이 제공하는 대부분의 특징들과도 구분될 것입니다. (고유한 기능)Introducti.. 공감수 0 댓글수 0 2015. 8. 12.
  • The Property System 소개 The Property System프로퍼티 (속성 값) 시스템출처 : http://doc.qt.io/qt-5/properties.htmlQt provides a sophisticated property system similar to the ones supplied by some compiler vendors. However, as a compiler- and platform-independent library, Qt does not rely on non-standard compiler features like __property or [property]. The Qt solution works with any standard C++ compiler on every platform Qt supports... 공감수 1 댓글수 0 2015. 8. 11.
  • Why Does Qt Use Moc for Signals and Slots? Why Does Qt Use Moc for Signals and Slots?왜 Qt 는 시그널과 슬롯으로 Moc 를 사용하나요? 출처 : http://doc.qt.io/qt-5/why-moc.htmlTemplates are a builtin mechanism in C++ that allows the compiler to generate code on the fly, depending on the type of the arguments passed. As such, templates are highly interesting to framework creators, and we do use advanced templates in many places in Qt. However, there are limita.. 공감수 0 댓글수 0 2015. 8. 11.
  • The Meta-Object System 소개 The Meta-Object System메타-오브젝트 시스템출처 : http://doc.qt.io/qt-4.8/metaobjects.htmlQt's meta-object system provides the signals and slots mechanism for inter-object communication, run-time type information, and the dynamic property system.Qt 의 메타-오브젝트 시스템은 객체-간 통신, 실행-중 (런타임) 자료 형 정보, 다이나믹 프로퍼티 시스템을 위한 시그널과 슬롯을 제공합니다.The meta-object system is based on three things:메타-오브젝트 시스템은 다음의 3가지에 근간(기본) 합니다.The.. 공감수 0 댓글수 0 2015. 8. 8.
  • Using the Meta-Object Compiler (moc) 소개 Using the Meta-Object Compiler (moc)메타-오브젝트 컴파일러 (moc) 사용하기 출처 : http://doc.qt.io/qt-5/moc.html The Meta-Object Compiler, moc, is the program that handles Qt's C++ extensions.메타-오브젝트 컴파일러라고 불리는 moc 는 Qt 의 C++ 확장들을 다루고 있습니다.The moc tool reads a C++ header file. If it finds one or more class declarations that contain the Q_OBJECT macro, it produces a C++ source file containing the meta-object code.. 공감수 0 댓글수 0 2015. 7. 29.
  • 0031 - GUI 프로그래밍 소개 / 프로젝트 내 파일 참고 영상 (2분 22초 이후)지난 시간인 0030 - GUI 프로그래밍 소개 에 이어서 진행합니다.GUI Application 을 구성하는 각 File 들에 대해 살펴 봅니다.1. main.cpp파일을 열어서 보시면 Console Application 과 거의 동일해 보입니다.12345678910111213// main.cpp#include "mainwindow.h"#include int main(int argc, char *argv[]){ QApplication a(argc, argv); MainWindow w; w.show(); return a.exec();} Colored by Color Scriptercs MainWindow w 와 w.show() 가 추가된 걸로 보이는데, 이것은 Project.. 공감수 1 댓글수 0 2015. 7. 28.
  • Session Management 소개 Session Management세션 관리출처 : http://doc.qt.io/qt-4.8/session.htmlA session is a group of running applications, each of which has a particular state. The session is controlled by a service called the session manager. The applications participating in the session are called session clients.세션 (session) 은 실행하고 있는 응용프로그램들의 묶음으로서, 각각 고유한 상태를 가지고 있습니다. 세션은 세션 관리자라고 불리는 서비스에서 제어되고 있습니다. 세션에 관여된 응용프로그램들을.. 공감수 0 댓글수 0 2015. 7. 27.
  • QApplication 소개 QApplication ClassQApplication 클래스출처 : http://doc.qt.io/qt-4.8/qapplication.htmlDetailed Description자세한 설명The QApplication class manages the GUI application's control flow and main settings.QApplication 클래스는 GUI 응용프로그램의 제어 흐름과 기본 설정들을 관리합니다.QApplication contains the main event loop, where all events from the window system and other sources are processed and dispatched. It also handles the applic.. 공감수 1 댓글수 0 2015. 7. 25.
  • Qt Maintenance Tool 의 Update 가 되지 않을 때 Online 으로 연결해서 Qt Library 를 업데이트 하고 싶은데, At least one valid and enabled repository required for this action to succeed 라는 오류가 나서 진행되지 않을때 아래의 방법대로 진행하면 해결됩니다.1. 왼쪽 아래 Settings 을 선택합니다.2. Default repositories 에서 Check 할 수 있는 항목이 있는지 확인해서 OK 를 누르던가 아래 처럼 임시로 mirror site 에 있는 repositories (저장소) 를 등록합니다.3. Add 를 누른뒤 아래의 내용을 입력해서 붙여 넣습니다. http://ftp.yz.yamagata-u.ac.jp/pub/qtproject/online/qt5/window.. 공감수 0 댓글수 0 2015. 7. 24.
  • Qt 5.4 에서 5.5 로 비교적 빠르게 업그레이드 하기 Visual Studio 2012 에서 Visual Studio 2013 으로 넘어가면서 기존에 설치 되었던 QT 의 Build 환경이 망가져 버렸습니다. 다시 설치하려고 했더니 QT 도 5.4 에서 5.5 로 넘어 가더군요. 그래서 다시 설치하는 과정을 요약 했습니다.이전처럼 LGPL & GPL License 에 동의 하는 것으로 시작합니다. 본 Program 을 이용해서 상업적인 개발은 할 수 없습니다.1. 제어판에 가서 Qt 를 삭제 합니다.2. Qt 5.5 를 받으러 갑니다. Online Installer 가 예전처럼 빠르지 않아서, 이전과는 다르게 필요한 부분만 받는 방식으로 진행 하겠습니다. mirror site 를 이용하여 가까운 곳에서 운영하는 Site 로 갑니다. http://downlo.. 공감수 0 댓글수 0 2015. 7. 24.
  • 0030 - GUI 프로그래밍 소개 / 프로젝트 생성하기 참고 영상간단하게 QT 로 GUI Application 을 만들어 봅니다.작업 파일1. QT Creator 를 실행하고 File -> New File or Project 를 선택합니다.2. Template 은 사용하고 계시는 Qt 의 Version 마다 다를수 있는 부분입니다. 예전에는 Qt Gui Application 을 선택했는데, 현재 (5.5) 는 Qt Widgets Application 을 선택합니다. 3. Project 명을 입력합니다. 저장될 장소를 Create in 항목으로 확인하고 003_GUI 로 지정후 Next 를 입력합니다.4. Kit Selection 에서 Qt 를 설치할 때 선택했던 Kit 를 선택합니다. MinGW 를 선택해서 설치 했으므로 해당 Check 상자가 선택된 것을 .. 공감수 0 댓글수 4 2015. 7. 23.
  • Gibraltar Airport (지브롤터 공항) 의역) 모나크 항공 에어 버스 A320 항공기가 북부 지브롤터 분쟁 지역에 위치한 지브롤터 공항에서 이륙 (오른쪽에서 왼쪽으로) 하는 단계별 모습을 찍은 시간별 다중 합성 사진입니다. 가운데 보이는 지역은 윈스턴 처칠 거리로, 지브롤터와 스페인을 연결하는 유일한 거리입니다. 사진에서 볼 수 있듯이, 도로는 공항 활주로와 연결되어 있으므로, 비행기가 매번 이륙하거나 착륙할 때는 닫히게 됩니다. 원문) A time-lapse photomontage showing multiple stages of a Monarch Airlines Airbus A320 aircraft taking off (moving right-to-left) from Gibraltar Airport, located at the norther.. 공감수 0 댓글수 0 2015. 4. 6.
  • Baker Beach (베이커 비치, 해변) 의역) 샌프란시스코의 북서 끝에 위치한 공공 해변인 베이커 비치에서 본 금문교(골든 게이트 교) 입니다. 다리 남쪽 부터 시작해 남쪽으로 계속, 샌프란시스코 해안 절벽(씨 클리프, Sea Cliff), 수트로 온천과 레기온 드뇌르 박물관 까지 이어져 길이가 대략 반마일 (0.8 킬로미터) 됩니다.원문)A view of the Golden Gate Bridge from Baker Beach, a public beach located at the northwestern end of San Francisco. It is roughly a half mile (0.8 km) long, beginning just south of the bridge, extending southward toward the Sea C.. 공감수 1 댓글수 0 2015. 4. 4.
  • Creating Custom Qt Types 공감수 0 댓글수 0 2015. 4. 2.
  • Debugging Techniques 공감수 0 댓글수 0 2015. 4. 2.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.