官术网_书友最值得收藏!

How it works...

Qt Quick editor uses a very different approach for placing widgets in the application compared to the form editor. The user can decide which method is best suited to their purposes. The following screenshot shows what the Qt Quick Designer looks like:

We will now look at the various elements of the editor's UI:

  1. Navigator: The Navigator window displays the items in the current QML file as a tree structure. It's similar to the object operator window in the other Qt Designer we used in the previous Using style sheets with Qt Designer section.
  2. Library: The Library window displays all the Qt Quick Components or Qt Quick Controls available in QML. You can click and drag it to the canvas window to add to your UI. You can also create your own custom QML components and display it here.
  1. Resources: The Resources window displays all the resources in a list that can then be used in your UI design.
  2. Imports: The Imports window allows you to import different QML modules into your current QML file, such as a Bluetooth module, a WebKit module, or a positioning module, to add additional functionality to your QML project.
  3. Properties pane: Similar to the Property Editor we used in previous recipe, the Properties pane in QML Designer displays the properties of the selected item. You can also change the properties of the items in the code editor.
  4. anvas: The canvas is the working area where you create QML components and design applications.
  5. tate pane: The State pane displays the different states in the QML project, describing UI configurations, such as the UI controls, their properties and behavior, and the available actions.
  6. onnections: This panel is where you set the signal handlers for each QML component in your canvas, which empowers the signals and slots mechanism provided by Qt.
主站蜘蛛池模板: 巴里| 太原市| 黄大仙区| 天全县| 绥江县| 区。| 桑植县| 六盘水市| 延长县| 泸西县| 稻城县| 那坡县| 临沧市| 扎赉特旗| 大同市| 谷城县| 湘乡市| 扬中市| 扶余县| 岫岩| 贵港市| 宁都县| 乌兰县| 岳阳市| 沙湾县| 通州市| 綦江县| 玉门市| 陵水| 丽水市| 乌恰县| 体育| 盐城市| 满城县| 郧西县| 资中县| 迭部县| 马龙县| 涞水县| 都匀市| 达州市|