http://egloos.zum.com/seoz/v/4002136


 Qt-gstreamer

 in - 

Clone
git://anongit.freedesktop.org/gstreamer/qt-gstreamer
ssh://git.freedesktop.org/git/gstreamer/qt-gstreamer
http://anongit.freedesktop.org/git/gstreamer/qt-gstreamer.git


'Qt' 카테고리의 다른 글

Qt 설정작업  (0) 2016.02.01
qmake 비교 작업  (0) 2016.02.01
Qt using libtag  (0) 2015.11.17
멋진 플레이어  (0) 2015.11.16
QML_Binding C++  (0) 2015.11.12

c/c++ 외부라이브러리는 어떻게 사용해야하나요? (Qt)


동일에러 TagLib::FileRef::FileRef(char const*, bool, TagLib::AudioProperties::ReadStyle)'


qt project file(.pro)  파일안 설명 

TagLib을 이용해 mp3안의 메타 데이터 (ID3) 가져오기



Qt에서 ogg라이브러리 사용 방법


Loading a TabLib .a File into project


QMPlay2

   15.10.18  



QT/Embedded Font Howto 문서 오픈소스


'Qt' 카테고리의 다른 글

qmake 비교 작업  (0) 2016.02.01
GStreamer 설치  (0) 2015.11.21
멋진 플레이어  (0) 2015.11.16
QML_Binding C++  (0) 2015.11.12
리스트 QAbstractListModel[11_10]  (0) 2015.11.10

https://www.youtube.com/watch?v=S8oVS3onQV0



[QT/Win32] Qt 에서의 이벤트 처리   http://www.korone.net/bbs/board.php?bo_table=qt_lecture&wr_id=936&page=1


[QT/Win32] 한글 자동완성 구현에 있어서 애를 쓰고 있습니다 ㅠㅠ  

http://qt-project.co.kr/bbs/board.php?bo_table=qt_qna&wr_id=21463



TagLib을 이용해 mp3안의 메타 데이터 (ID3) 가져오기

http://kimoscode.blogspot.kr/2010/02/taglib%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%B4-mp3%EC%95%88%EC%9D%98-%EB%A9%94%ED%83%80-%EB%8D%B0%EC%9D%B4%ED%84%B0-id3-%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0.html




앨범커버 불러오기

http://cafe.naver.com/gogoomas/307246


TagLib.File TagFile = TagLib.File.Create()

MemoryStream      

'Qt' 카테고리의 다른 글

GStreamer 설치  (0) 2015.11.21
Qt using libtag  (0) 2015.11.17
QML_Binding C++  (0) 2015.11.12
리스트 QAbstractListModel[11_10]  (0) 2015.11.10
Qt 에서 이벤트 처리하기 event  (0) 2015.10.30

http://www.qtocube.co.kr/?page_id=478

'Qt' 카테고리의 다른 글

Qt using libtag  (0) 2015.11.17
멋진 플레이어  (0) 2015.11.16
리스트 QAbstractListModel[11_10]  (0) 2015.11.10
Qt 에서 이벤트 처리하기 event  (0) 2015.10.30
Q_ENUMS  (0) 2015.10.26

http://doc.qt.io/qt-5/qabstractlistmodel.html


Header:#include <QAbstractListModel>
qmake: QT += core
Inherits:QAbstractItemModel
Inherited By:

EnginioModel and QStringListModel







 virtual bool

 dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent)

 virtual Qt::ItemFlags

 flags(const QModelIndex & index) const

 virtual QModelIndex

 index(int row, int column = 0, const QModelIndex & parent = QModelIndex()) const

 virtual QModelIndex

 sibling(int row, int column, const QModelIndex & idx) const



If you need to use a number of list models to manage data, it may be more appropriate to subclass QAbstractTableModel instead.




we could implement a simple read-only QStringList-based model that provides a list of strings to a QListView widget. In such a case, we only need to implement the rowCount() function to return the number of items in the list, and the data() function to retrieve items from the list.

Since the model represents a one-dimensional structure, the rowCount() function returns the total number of items in the model. The columnCount() function is implemented for interoperability with all kinds of views, but by default informs views that the model contains only one column.

rowCount()  , data() 함수 필요 

roleNames() 함수는 QML 에서 접근하기 위해 필요하다.

list model을 수정하기위해 setData(), flags() 함수를 사용한다.

insertRows(), removeRows()

중요 아래

Note: Some general guidelines for subclassing models are available in the Model Subclassing Reference.

See also Model Classes, Model Subclassing Reference, QAbstractItemView, QAbstractTableModel, and Item Views Puzzle Example.



Model Subclassing Reference

3개의 그룹으로 나뉜다
  • Item data handling: All models need to implement functions to enable views and delegates to query the dimensions of the model, examine items, and retrieve data.
  • Navigation and index creation: Hierarchical models need to provide functions that views can call to navigate the tree-like structures they expose, and obtain model indexes for items.
  • Drag and drop support and MIME type handling: Models inherit functions that control the way that internal and external drag and drop operations are performed. These functions allow items of data to be described in terms of MIME types that other components and applications can understand.
http://doc.qt.io/qt-5/qabstractitemmodel.html#roleNames


QHash<intQByteArray> QAbstractItemModel::roleNames() const         [virtual]    

 
 model's role names 를 반환  The  default role names set by Qt are  
Qt RoleQML Role Name
Qt::DisplayRoledisplay
Qt::DecorationRoledecoration
Qt::EditRoleedit
Qt::ToolTipRoletoolTip
Qt::StatusTipRolestatusTip
Qt::WhatsThisRolewhatsThis
ex )
 




단어 

'Qt' 카테고리의 다른 글

멋진 플레이어  (0) 2015.11.16
QML_Binding C++  (0) 2015.11.12
Qt 에서 이벤트 처리하기 event  (0) 2015.10.30
Q_ENUMS  (0) 2015.10.26
QQuickView 옵션  (0) 2015.10.26





참고 사이트 

http://kbdyj.tistory.com/m/post/42  (좋음)

Qt 에서 이벤트 처리하기

데빌쿠 | 2014/10/09 01:27 | archive(자료


'Qt' 카테고리의 다른 글

QML_Binding C++  (0) 2015.11.12
리스트 QAbstractListModel[11_10]  (0) 2015.11.10
Q_ENUMS  (0) 2015.10.26
QQuickView 옵션  (0) 2015.10.26
다국어처리  (0) 2015.10.26


enum 을 사용 한 샘플 코드


 

 


C++에서 정의한 함수를 QML 에서 호출하기 위해서는 Q_INVOKABLE 을 사용한다.



헤더 enumcode.h

Q_ENUMS (Bit) //C 파일에서 사용시 필요없지만 qml 에서 사용하기 위해서는 필요하다.


public: 

Q_INVOKABLE Bit igetBit() { return eData; }

     Q_INVOKABLE void isetBit(Bit data)      { eData = data; }


main.cpp 에 추가

1.

qmlRegisterType<EnumCode>("kw.project", 1, 0, "Qmlkw");  

//qml 에서 사용시 import kw.project 1.0 주로 enum 값을 사용할 때 쓰임


2.

QQuickView view;

view.rootContext()->setContextProperty("BitObject", test1);  

// QML 에서 BitObject 라는 이름으로 test1 객체(인스턴스를 사용한다.)


    view.setSource(QUrl::fromLocalFile("qml/main_front.qml"));





BitObject.KW 1        // enum 에접근 불가 view.rootContext()->setContextProperty("BitObject", test1);

Qmlkw.KW1             // enum 에 접근 가능 import kw.project 1.0



참고 사이트

New in Qt 5.5: Q_ENUM and the C++ tricks behind it


http://www.hitmaroc.net/508680-4550-exposing-enums-qml.html


http://www.qtcentre.org/threads/51015-Q_ENUMS-and-Qt-Style-Sheet




'Qt' 카테고리의 다른 글

리스트 QAbstractListModel[11_10]  (0) 2015.11.10
Qt 에서 이벤트 처리하기 event  (0) 2015.10.30
QQuickView 옵션  (0) 2015.10.26
다국어처리  (0) 2015.10.26
QAbstractListModel 클래스  (0) 2015.10.26


view.setFlags(Qt::FramelessWindowHint); // 타이틀바 보이지 않기

    view.setColor(QColor(Qt::transparent));


'Qt' 카테고리의 다른 글

Qt 에서 이벤트 처리하기 event  (0) 2015.10.30
Q_ENUMS  (0) 2015.10.26
다국어처리  (0) 2015.10.26
QAbstractListModel 클래스  (0) 2015.10.26
Embedding C++ Objects into QML with Context Properties[26]  (0) 2015.10.26

http://www.podovat.com/?p=396



'Qt' 카테고리의 다른 글

Q_ENUMS  (0) 2015.10.26
QQuickView 옵션  (0) 2015.10.26
QAbstractListModel 클래스  (0) 2015.10.26
Embedding C++ Objects into QML with Context Properties[26]  (0) 2015.10.26
Interacting with QML Objects from C++[10_25]  (0) 2015.10.25

Detailed Description

 rowCount() function returns the total number of items in the model.

The columnCount() function is implemented for interoperability with all kinds of views, but by default informs views that the model contains only one column.



If your model is used within QML and requires roles other than the default ones provided by the roleNames() function, you must override it.


An insertRows() implementation must call beginInsertRows() before inserting new rows into the data structure, and it must call endInsertRows() immediately afterwards.

A removeRows() implementation must call beginRemoveRows() before the rows are removed from the data structure, and it must call endRemoveRows() immediately afterwards.

Note: Some general guidelines for subclassing models are available in the Model


6. Model-View-Delegate

원문 https://qmlbook.github.io/en/ch06/index.html



주의점 

 QAbstractListModel 을 상속 받아서 클래스를 만들경우 rowCount() 와 data() 함수를 만든다.




단어

one-dimensional - 1차원의 , 깊이가 없는

non-hierarchical

'Qt' 카테고리의 다른 글

QQuickView 옵션  (0) 2015.10.26
다국어처리  (0) 2015.10.26
Embedding C++ Objects into QML with Context Properties[26]  (0) 2015.10.26
Interacting with QML Objects from C++[10_25]  (0) 2015.10.25
Property Value Initialization Semantics[10_23]  (0) 2015.10.23

+ Recent posts