How to Remove Toolbar from MeeGo Harmattan Application/bg

From Qt Wiki
Jump to navigation Jump to search
IMPORTANT: The content of this page is outdated. Reason: The MeeGo/Harmattan platform is no longer supported.
If you have checked or updated this page and found the content to be suitable, please remove this notice.
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

Български English

Как да премахнем лентата с инструменти от приложение за MeeGo Harmattan

Проблемът

По подразбиране всички естествени Qt приложения за MeeGo Harmattan (Nokia N9 и Nokia N950) имат лента с инструменти, която може да съдържа няколко бутона, в най-долната част на екрана. Някой приложения не се нуждаят от тази лента с инструменти и тя трябва да бъде премахната.

Решението

За да махнете лентата с инструменти от QML приложения за MeeGo Harmattan изпълнете следните стъпки:

  • Забранете видимостта на лентата с иструменти в основния QML файл и изтриите менюто:
ToolBarLayout {
 id: commonTools
 visible: false
 }
  • Забранете tools на вашата страница:

Page {

tools: null