해당 부분에 대한 qml, qt 또는 C++에 대한 지식이 없습니다. 하지만 내 문제는이 XML 파일 인 .lex 파일과 .pml로 끝나는 일부 파일 (frontpagetemplate.qml)이 있다는 것입니다.병합 qml 태그 파일, 프레젠테이션 용 렉스 파일이 있습니까?
여기 형식이 너무 알려지지 않았습니다.
<qt title="{book_name}">
<h1>{book_name}</h1>
<br/>
<!-- BEGIN paragraph_tpl -->
<!-- BEGIN paragraph_html_tpl -->
{html}
<!-- END paragraph_html_tpl -->
<!-- BEGIN paragraph_header_tpl -->
<h2>{header}</h2>
<!-- END paragraph_header_tpl -->
<!-- BEGIN paragraph_text_tpl -->
<p>{text}</p>
<!-- END paragraph_text_tpl -->
<!-- BEGIN paragraph_link_tpl -->
<p><a href="{link_href}">{link_name}</a></p>
<!-- END paragraph_link_tpl -->
<!-- BEGIN paragraph_olist_tpl -->
<ol type="{list_type}">
<!-- BEGIN olist_item_tpl -->
<li>{text}</li>
<!-- END olist_item_tpl -->
</ol>
<!-- END paragraph_olist_tpl -->
<!-- BEGIN paragraph_ulist_tpl -->
<ul type="{list_type}">
<!-- BEGIN ulist_item_tpl -->
<li>{text}</li>
<!-- END ulist_item_tpl -->
</ul>
<!-- END paragraph_ulist_tpl -->
<!-- BEGIN paragraph_table_tpl -->
<table {bgcolor} {width} border="{border}" cellspacing="{cellspacing}" cellpadding="{cellpadding}">
<!-- BEGIN table_tr_tpl -->
<tr {bgcolor}>
<!-- BEGIN tr_th_tpl -->
<th {bgcolor} {width} colspan="{colspan}" rowspan="{rowspan}" align="{align}">{text}</th>
<!-- END tr_th_tpl -->
<!-- BEGIN tr_td_tpl -->
<td {bgcolor} {width} colspan="{colspan}" rowspan="{rowspan}" align="{align}">{text}</td>
<!-- END tr_td_tpl -->
</tr>
<!-- END table_tr_tpl -->
</table>
<!-- END paragraph_table_tpl -->
<!-- BEGIN paragraph_image_tpl -->
<p><img src="{img_src}" /></p>
<!-- END paragraph_image_tpl -->
<!-- END paragraph_tpl -->
<table border>
<tr>
<th align="left">ID</th>
<td>{book_id}</td>
</tr>
<tr>
<th align="left">Created</th>
<td>{created}</td>
</tr>
<tr>
<th align="left">Last modified</th>
<td>{modified}</td>
</tr>
<tr>
<th align="left">Publisher ID</th>
<td>{publisher_id}</td>
</tr>
<tr>
<th align="left">Publisher</th>
<td>{publisher_name}</td>
</tr>
</table><br/>
</qt>
이 구문은 무엇입니까? 거기에 편집기가 있습니까? html로 변환 할 수 있습니까?
정말 이에 대한 정보를 찾는 데 문제가 있습니다. 내가 qml에 대해 알게 된 것은 JavaScript 변형과 비슷한 형태이다.
내 목표는 이러한 파일을 병합하여 오늘날의 추한 표정보다는 오히려 .lex 파일의 태그와 데이터를 HTML로 표시하는 것입니다.
안녕하세요. 답변 해 주셔서 감사합니다. 내가 생각하기에 이것 (https://qt-project.org/doc/qt-4.8/richtext-html-subset.html)에 대한 태그라고 생각하는 것이지만, 나는 도구에서 html로 내보내거나 찾기를 원한다. 그것을위한 편집자. qt를 html로 바꾸는 것은 모든 {bgcolor} 등으로 인해 혼자 도움이되지 않습니다. –
http://mustache.github.io/와 같은 프로젝트를보십시오. 물론 다른 호출을 사용하여 텍스트 서식을 지정할 수 있습니다. 그것은 정말로 당신이하려고하는 것에 달려 있습니다. 확실히 틀입니다. –