Optional instructions for using a real MeeGo device

Qt 6 实战:一个 Demo 讲透 C++ 与 QML 混合编程的两种桥接方式(附完整源码) 本文以QtQuick3DDemo示例详解Qt6中QML与C++的三类核心交互:对象暴露(setContextProperty vs QML_ELEMENT)、回调调用(Q_INVOKABLE)与数据刷新(Q_PROPERTY + NOTIFY)。通过对比两种桥接方案,直观展示方式二(类型注册)在生命周期管理、类型安全与可维护性上的优势,强调新项目应优先采用。代码均来自真实项目,可直接编译运行,适合从QWidget转向QtQuick的开发者快速掌握混合编程精髓。 阅读详情

Optional instructions for using a real MeeGo device

If you have a real MeeGo device available, it’s also possible to run and debug your application on it using Qt Creator. 

Prepare the device

The device requires some configuration and extra packages before you can deploy from Qt Creator to it. Install them from the command line as follows: 

  1. Deployment from Qt Creator to a real device uses SSH for file copying, so you need to install OpenSSH server on the netbook with:
    sudo zypper install openssh-server

    To start it manually (you’ll need to do this just after you’ve installed it, otherwise it won’t be available until you reboot): 

    sudo /etc/init.d/sshd start

    To add it to the init sequence so it starts at boot time: 

    sudo chkconfig --add sshd
  2. If you want to debug applications remotely, you need to install gdbserver on the netbook:
    sudo zypper install gdb-gdbserver

Run the application on the device

In Qt Creator (still running from the chroot): 

  1. With a project selected, click on the Projects icon to show the project configuration tabs.
  2. Select the Run Settings tab.
  3. Click on the Add drop-down and select testapp on MeeGo device (testapp will be set to the name you gave your project).
  4. Click on the Manage device configurations link to display the MeeGo Device Configurations dialog.
  5. Click on the Add button (top-right) and complete the fields so they resemble the screenshot below:
    File:QtCreator_configure_meego_device.png
    You’ll need to set Host Name to the IP address or domain name of the netbook, and enter the User Name and Password you used when you set up the netbook. The other options can be left at their defaults.
  6. Click on the Test button to check the connection. If it’s configured correctly, you should see a message like the one in the screenshot above (“Device configuration successful”).
  7. Click on OK to save your changes. This returns you to the Run Settings tab.
  8. Select the new MeeGo netbook option from the Device Configuration drop-down.

Once you’ve completed this, you should be able to deploy and run the application on the netbook: 

  1. At the bottom-left of the Qt Creator window is a panel for selecting the build and run environments:
    File:QtCreator_run_on_device.png
    Click on the computer monitor icon, then use the arrows to select testapp on MeeGo device from the Run drop-down. The Build drop-down can be left at Debug.
  2. Click on the green arrow (the normal run arrow) to deploy the application and run it. This copies the application binary to the home folder of the user you specified in the SSH settings and runs it.
    If you can’t see the application, it may be because it hasn’t been given focus. You can use the zones icon in the toolbar to show the running application and select it.

Here’s an example of what the application looks like running on a netbook: 

File:Qt_app_running_on_netbook.png 

Debug the application on the device

This works almost the same on a remote device as it does inside the Simulator. 

  1. Configure the remote device as explained above.
  2. In Qt Creator, click on the Target settings (bottom left with a monitor icon). Ensure you have Build set to Debug and Run set to testapp on MeeGo device (the remote device).
  3. Click on the green arrow overlaid with a bug to start the application remotely in debug mode.

If you used the same code as above, try clicking on the Click me button in the application (running on the netbook). The application should pause at the breakpoint; and in Qt Creator, the message variable should then be visible in the Locals and Watchers tab, set to “I have been well and truly clicked”. (No screenshot this time, as Qt Creator looks the same as it does for local debugging.) 

  • (3)Packaging MeeGo applications

    To distribute an application to a MeeGo device, it should be packaged using the RPM format. (It is possible to manually copy binaries to a device and get them to run, but this is not recommended, as there is no way to specify dependencies.)An RPM file is a binary file consisting of: 

    • A signature to verify the origin and integrity of the package
    • Metadata (name, version, architecture, authors etc.)
    • An archive of files to be installed on the destination filesystem (e.g. executables, images, documentation)

    This Packaging/Tutorial will give you a whole story to create a rpm package from a qt project. 

    References for packaging : 

  •  

    MeeGo application developer cookbook

    MeeGo platform developer tutorials

     

      

     

    Developer documentation guidelines

    A set of documentation principles describing the documentation process and the different licenses for different documents.

    Contents

    [hide]

     

    Developer Guide process

    The intention behind the Developer Guide is to sign-post the most-accurate information available to MeeGo developers. As such, it should not be added to in an ad hoc fashion or subjected to massive restructurings without community involvement. Usual MeeGo SDK community channels can be used to discuss changes. 

    If you notice an improvement which could be made to the Developer Guide, you have a few options: 

    • Fix it yourself (if it’s already in the guide); let the meego-sdk mailing list know if it’s anything significant (e.g. you removed or added a large chunk of text; fixing typos is OK and you don’t need to tell anyone etc.)
    • Write a new page yourself and log a request to have it added to the Developer Guide; include the title of the page in the title of the bug
    • Log an enhancement request for a page to be added to the Developer Guide if you can’t or won’t write it yourself; be as specific as you can about the content you expect to see in it
    • Log a bug if you spot a problem on a page (something wrong, something missing) and can’t or won’t fix it yourself; requests to remove a page, move a page out of the guide etc. can also be made this way

    Bugs and enhancement requests are logged on http://bugs.meego.com/, inside the Documentation product, SDK docs component. 

    Documentation issues should also be attached to the appropriate version of the Developer Guide (corresponding to MeeGo versions): check the version of the Developer Guide you’re viewing and select the appropriate version when making your request. 

     

    Picking up documentation tasks

    Documentation bugs can be taken on by any MeeGo SDK community member. Please review the SDK Tutorial Content page when authoring new content. 

    Bugs are closed at the discretion of the MeeGo SDK community; for example: 

    • A request for a new page can be closed when a page is in place which satisifies the requirements specified in the bug.
    • A request to include a new page in the Developer Guide can be closed when the page is linked from the Developer Guide table of contents.

     

    Content categorization

    See Developer guide content organisation for some suggestions about how to categorise developer guide pages. 

     

    Licensing

    Creative Commons Attribution 3.0 is the licence for the wiki; documentation uses the same licence 

    • Technical documentation style guide

    • Some tips for writing MeeGo technical documentation. These are based on my personal experience (as a technical writer).The intended audience is anyone wanting to write documentation covering how to develop for MeeGo, e.g. someone writing tutorials or recipes for application developers or platform developers, someone writing a course on MeeGo development. It does not cover: 
      • The right structure for documentation: it’s more about general principles of technical writing
      • Wiki mark-up to use: it doesn’t cover whether to use bold or italics for user interface element names, when to use fixed-width fonts, or any of that stuff

      Note that this is a work in progress, so should improve over time.

      Contents

      [hide]

      Start from a known state

      You should explain why the document exists: 

      • What it will show you to do (build a PDF viewer, understand how DBus works)
      • The intended audience (beginner, C programmer, web programmer)
        See Audience for MeeGo developer documentation for some examples of the range of MeeGo audiences
      • The vertical it’s applicable for (will it only work for netbooks?)

      Also explain any assumptions you’re making about the reader and their context. For example: 

      • A “getting started” tutorial should start from a clean install of an operating system.
      • A tutorial about “advanced widget use” might build from a state reached in a previous tutorial. But you need to make that explicit: say, “You should do tutorial X before you start this tutorial”.
      • A programming tutorial should either tell the reader what they need to install, or tell them where to find that out, or tell them they should go and work it out for themselves.

      You can be explicit about where a MeeGo SDK guide belongs by categorising it: I put some suggestions about how to do this in Developer guide content organisation. 

      Tell a story

      Start with small pieces and join them into a significant whole: you’re taking the reader on a journey where they’ll hopefully be a different (preferably better) person by the end. 

      Make sure there’s a progression (from them knowing “little or nothing” to them knowing “something”). 

      Only add a small amount at each step, and make sure what you add at each step is a coherent unit: for example, implement a single feature or explain a single concept. (Though working out how big a “unit” should be is tricky in itself.) 

      You could show a screenshot of the finished application and then say “here’s how we got here”. But don’t start with a big pile of code and try to pick it apart and explain it. That’s difficult for someone to grasp. If you’re writing about building a full application, add the features in a logical order the way a developer might do it, e.g. 

      1. Set up the project
      2. Create the basic skeleton of the application
      3. Add some read-only/inactive widgets
      4. Add behaviour to the widgets but stub out interactions with other parts of the environment
      5. Add interactions with the real environment (e.g. fetch data from the network, talk to device APIs)

      Make sure there is a reason for adding each new feature. Adding spurious, unrealistic, disjointed (but maybe cool) features doesn’t make a good story. 

      You could also use “characters” and put them in scenarios which mirror development in the real world. For example: 

      • A developer is being asked by a customer to add new features to an application.
      • A tester and developer are working together on testing an application.
      • A developer is writing an application for his girlfriend.

      The O’Reilly Head First books are a good example of how to do this well 

      Write conversationally and informally

      While writing, imagine you’re explaining to a peer, colleague, family member or friend (depending on the type of audience you’re writing for). This makes your writing more natural and help you get the flow right: it’s easier to track a conversation in your head than it is to track an abstract explanation. 

      Use “we” and “you”; address the reader directly. Compare the following two pieces of text and see which one reads better: 

      The button widget can be added to a layout using the add_actor method.

      You can add a button widget to a layout using the add_actor method.

      (I’d argue the second reads better.) 

      Use task-based structures

      Explain concepts by getting the reader to carry out a task related to them. Rather than explaining about something in abstract, show the reader what “impact” completing that task will have on them: what effect it has on the application, or on their programming skill, or on the world around them (more generally). 

      For example: 

      • “Configuring the application” rather than “Application configuration”
      • “Writing a depth-first parser” rather than “Depth-first parser construction”
      • “Adding a label widget” rather than “Label widgets”

      This means someone knows what they’re going to achieve by the end of the section, and has an idea of the scope of the information in that section. 

      Explain too much, rather than too little

      Try to make the right assumptions about the reader, what they know, and the context they’re working in. Having a fictional conversation with someone real helps with this, as you can use what you know about that person to decide what to explain. For example: 

      • If I’m writing a beginner programming tutorial, I imagine I’m talking to one of my friends or family, who understands computers (they know what a menu is, how to select things, understand OK and Cancel buttons), but not so much about programming.
      • If I’m writing about an advanced programming topic, I imagine I’m talking to one of my co-workers. I have a decent idea of their field of reference: they’ll know what the Model View Controller pattern is, understand what a method signature is, be familiar with how network protocols work. At the same time, I try to be aware of what I know which they might not, e.g. “I’ve probably done more web programming than they have, so they may not be so familiar with CSS and HTML syntax”.

      Each time you feel the need to explain something, decide whether that person would already know it. If you’re not sure, explain it. 

      Compare the new with the familiar

      This relates to the previous section: if you’re explaining something new, compare it to something the reader might already know about. Some of the time, if it’s new to you, this can help you understand it, too. 

      As an example, a few months back I helped write a page about DBus. There was a section about signals, but I wasn’t really getting how to use them, and felt this would hinder other people understanding it. So I tried to find an explanation of signals which related to the real world, and came up with this: 

      Signals provide a way for objects to notify other objects about events which happen to them: for example, a Door interface might provide a signal to other objects when it is opened, perhaps called door-opened. (A nearby Doorman object might listen out for door-opened signals, so it knows when people come into the building.)

      Provide useful, relevant, meaningful examples

      Examples should be: 

      • Self-contained (as far as possible): in the case of code examples, you should be able to compile it without needing loads of tools, or use them straight away inside an IDE like Qt Creator. If this isn’t possible, they should include an INSTALL file (or at least README comments) explaining how to build them, distributed with the code (see above).
      • Meaningful: they should provide a solution for some possible issue. For example, if you’re explaining how to use widgets, write an application which demonstrates how to use them in context, e.g. an address book.

      Specifically, code examples should be: 

      • Included in the MeeGo code examples repository/wiki (once we’ve decided on the best format for this). This makes it easier for other people to get at them, fix them, extend and improve them.
      • Available under a liberal open source licence. I suggest BSD.

      Some open problems: 

      • How to include source code in guides. I tend to cut and paste as I go, but maybe there’s a better way.

      Also try to stay focused on the topic. This sounds obvious, but it’s sometimes difficult to resist “showing off”. Just because the history of compilers is very interesting, it doesn’t mean you should cover it in a tutorial about writing desktop applications. 

      Leave a gap between drafts

      Write a first draft, then leave it alone for a few hours (preferably 24). 

      Then go back to it and read it over from start to finish, correcting as you go. Because you’ve had a break from what you’ve written, you’ll be able to look more objectively at it, and be able to spot errors or places where the “flow” isn’t right. 

      Don’t be afraid to restructure. Look for sections you can reduce in size or remove. 

Qt+SCADA 组态开发(1/10):先把工程骨架立住 做组态软件,第一步不是急着画图元,而是先把“工程”这件事变成可存、可读、可扩展的数据。这一课用 C++17 + Qt 6 Widgets 搭一个能跑起来的主窗口:左侧工程树、右侧属性表、底部输出面板、三段式状态栏,并且用一套 JSON 把画面信息完整存下来。新建、增删画面都会把脏标记置上,标题栏立刻出现“未保存”,保存成功才清掉。选中树节点后刷新属性表和状态栏,数据只往一个方向流,界面不会和数据互相纠缠。只做纯数据的事情:持有工程名、版本、画面列表,提供新增、删除、重命名和保存加载;打印工程概览后退出。 阅读详情

相关推荐

运放专题:运算放大电路中的相位补偿

的方法

五花带点肉 2万+

Qt_10深入一点的布局管理

Qt 布局管理

u012660296的博客 186

WAVE格式

一.wave格式概述 Wave文件格式是用于多媒体文件存储的Microsoft RIFF(Resource Interchange FileFormat)的一个子集。每一个RIFF文件以一个文件头开始,后面是一系列数据块。Wave文件通常是包含“WAVE”块的RIFF文件。而该“WAVE”块由两个子块组成,称为“fmt”块。“fmt”块用于确定数据格式,并且“data”块包含实际的样本数据,

yejia1280的博客 4394

《QT》常用控件(三):按钮类控件实战(PushButton、单选、复选)

本文系统讲解Qt中三大按钮控件:QPushButton(普通按钮)、QRadioButton(单选按钮)与QCheckBox(复选按钮)的核心属性、信号机制及实战应用。通过图标设置、快捷键与autoRepeat连发功能演示,掌握按钮交互逻辑;通过性别选择与多组单选案例,厘清toggled与clicked信号差异及QButtonGroup分组原理;结合多选场景,实现选中项动态收集与输出。内容涵盖基础用法、进阶技巧与开发注意事项,为构建高效、可维护的Qt界面交互奠定坚实基础。

2501_91275995的博客 215

8.5/Q1,Charls最新高分文章解读!

8 257名受试者中,672人(8.14%)在9年内发生过卒中。在调整的多因素cox回归模型中,TyG和ABSI仍然是卒中的预测因素,TyG的HR为1.25(95%CI:1.06~1.47),ABSI的HR为1.33(95%CI:1.06~1.68)。TyG和ABSI联合诊断效能最高(AUC:0.579,95%CI:0.553~0.597),而TyG(AUC:0.566,95%CI:0.544~0.587)和ABSI(AUC:0.533,95%CI:0.524~0.597)的诊断效能最低。

gsky_sci的博客 1020

ROS阿克曼小车避坑指南:TEB Local Planner参数调优实战(附完整配置文件)

本文针对ROS阿克曼底盘机器人,提供了TEB Local Planner参数调优的实战指南。文章深入剖析了阿克曼模型与TEB的协同工作原理,重点讲解了`min_turning_radius`、`cmd_angle_instead_rotvel`等关键参数的设置与调试方法,并分享了性能优化、避障行为调整的实用技巧,旨在帮助开发者避开常见陷阱,实现小车在复杂环境中的稳定、高效导航。

ik6789012的博客 504

C++项目实践:用QT制作一个实用美观的计划app——TinyBloom

TinyBloom是一款跨平台个人计划工具,基于C++20与Qt6实现,支持Windows与Android双端本地数据存储。项目从需求分析到发布全流程完整,采用QML实现动态界面与动画,通过信号槽机制解耦QML与C++逻辑,以SQLite保障数据一致性,并借助线程池优化导出性能。核心功能包括任务拆解、专注计时、成长反馈与数据备份,真实用户反馈推动了兼容性修复与体验优化。文章强调“小步开始、真实反馈”的开发理念,展示了如何将一个简单想法转化为可交付、可持续维护的软件产品。

stellanke的博客 329

LM358实战:手把手教你搭建电流检测电路(附电阻选型计算)

本文详细解析了使用LM358运算放大器搭建电流检测电路的全过程,包括基础原理、采样电阻选型、放大电路设计及PCB布局技巧。通过实战案例和精确计算,帮助工程师快速掌握低成本、高精度的电流检测方案,适用于电源管理、电机控制等多种应用场景。

weixin_30872157的博客 461

对于Qt:QSpacerItem常见属性以及方法的解析

本文详细介绍了Qt中的QSpacerItem控件,这是用于精细调整布局间距的核心工具。文章通过对比setSpacing()和addStretch(),阐明了QSpacerItem的独特优势:可以局部调整特定控件间距而不影响全局布局,并能定制初始尺寸和伸缩规则。 主要内容包括: QSpacerItem的核心属性和尺寸策略(hData/vData) 构造函数的参数详解和使用示例 如何将QSpacerItem添加到不同布局中 常见应用场景(固定空白和可伸缩空白) 新手容易犯的5个错误和避坑指南 文章采用通俗易懂的

2503_92929084的博客 180

优惠券管理

(请设计一个优惠券兑换码生成方案,可以支持20亿以上的唯一兑换码,兑换码长度不超过10,只能包含字母数字,并且要保证生成和校验算法的高效)最后把签名值的后14位、新鲜值(4位)、自增序列(32位)拼接,得到一个50位二进制数,然后与一个较大的质数做异或运算加以混淆,再基于Base32或Base64转码,即可的对兑换码。现在,就剩下防止爆刷了。自增id从1增加到Integer的最大值,可以达到40亿以上个数字,而占用的字节仅仅4个字节,也就是32个bit位,距离50个bit位的限制还有很大的剩余,符合要求!

qq_36312661的博客 2211

PostgreSQL:十五. 性能优化

十五. 性能优化 优化简介: PostgreSQL优化一方面是找出系统的瓶颈,提高PostgreSQL数据库整体的性能; 另一方面,需要合理的结构设计和参数调整,以提高用户操作响应的速度; 同时还要尽可能的节省系统资源,以便系统可以提供更大负荷的服务。 PostgreSQL数据库优化是多方面的,原则是减少系统的瓶颈,减少资源的占用,增加系统的反应速度。例如: 通过优化文件系统,提高磁盘IO的读写速度; 通过优化操作系统调度策略,提高PostgreSQL的在高负荷情况下负载能力; 优化表结构、索引、查询

数据知道的博客 4万+

qt5.15.9编译qt-creator7.0.2源码

在Ubuntu 22.04环境下,通过配置Qt5.15.9、LLVM14与Clang14依赖,使用CMake与Ninja编译构建Qt Creator 7。设置安装路径为/home/homer/qtcreator7,编译完成后可在bin目录执行./qtcreator.sh启动IDE,成功完成定制化安装。

liji_digital的博客 220

3dmax文件格式转换——.max 转换为 .flt(解决转换后.flt没有纹理贴图的问题)

本文主要介绍如何在3dmax中将.max格式文件转换为.flt格式文件,并解决转换后的文件没有纹理贴图的问题。 在3dmax中,将.max文件转换为.flt格式,只需导出选择.flt格式即可,但是导出的文件在osgEarth中加载后,缺少纹理和贴图。 下面是解决方案: 1、选中加载的模型,然后点击 渲染-> 渲染到纹理 2、将 渲染到纹理 子窗口往下拉,点击 添加 按钮,添加 ...

cchangcs 6189

对于Qt:QMessageBox的解析

本文全面介绍了Qt框架中的QMessageBox消息对话框组件。主要内容包括: QMessageBox的基础认知:核心继承关系、设计理念和四种消息类型(提问/信息/警告/严重错误)的区分 详细解析了QMessageBox::StandardButton枚举常量,包括确认类、拒绝类和其他功能类按钮 深入讲解了四个核心静态便捷函数:question()、information()、warning()和critical() 介绍了手动创建QMessageBox实例的方法,包括构造函数、属性设置和核心方法调用 总结

2503_92929084的博客 304

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

Qt关闭按钮异常高亮问题详解:从QSS悬浮状态排查到动态属性与延迟重置修复

本文围绕Qt程序从托盘恢复后关闭按钮异常高亮的问题展开,分析悬浮状态、QSS样式刷新及窗口显示时序的关系。复盘重置WA_UnderMouse、在showEvent中刷新样式、隐藏前清理状态以及事件过滤器等方案,梳理失效原因。随后介绍动态属性与延迟重置结合的修复思路,从QSS样式改造、悬浮事件管理、控件初始化到托盘恢复和关闭按钮处理,实现状态同步。最后说明hide()与close()的区别、数据持久化触发时机,并给出排查清单和验证方法,帮助读者掌握Qt界面异常的定位与修复过程。

沫漓的博客 731

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

电绘匣上架:把 QElectroTech 整体搬上鸿蒙 PC—— Qt-OHOS 运行时迁移实录

格式移植——只解析.qet文件、用原生 UI 重写一个查看器;整体迁移——把 Qt 程序连同运行时搬上鸿蒙。选择的关键在于上游的核心资产到底在哪。QElectroTech 的核心资产在程序逻辑里:庞大的元件库体系、图元渲染引擎、导线端子几何、编辑交互、.qet读写,全部深度耦合在 C++/Qt 代码中。格式移植意味着用另一门技术栈重写一个大而全的绘图软件——保真度低、跟随上游升级的成本无穷大,而且元件库这套"活资产"(上千个社区元件定义、持续更新)根本带不走。

山河已无恙 7950

【QT opencv】dnn加载onnx算法模型(YOLO目标检测、目标分割)

QT中加载算法模型,可以通过opencv的DNN来加载。

ocy的博客 129

Qt 鸿蒙系统级 TTS 实战:让 QML 借系统的嗓子说话

本文基于 Qt 5.12.12 与 HarmonyOS,通过一个 QML 插件(SpatialTts)实现跨平台系统级 TTS:桌面调用 Qt TextToSpeech,鸿蒙对接 Core Speech Kit。核心创新在于将队列、状态管理与音色控制统一于 Qt 侧,后端按编译期选择,鸿蒙端通过 JS 线程桥(QOhosJsThreadGateway)调用 ArkTS 接口,并完成宿主注册。

白天写代码,晚上追AI大模型,偶尔搞点八卦 开源动态|技术干货|实习机会|生态活动 我负责分享,你负责变强 223

Qt_09Item Widget与Item View

Qt 的ItemWidget 和ItemView

u012660296的博客 141

在鸿蒙 PC 上跑 SciDAVis:Qt5 科学绘图的 QPA 适配与数据实测

本文介绍将开源科学绘图软件SciDAVis 2.3.0移植至鸿蒙PC的完整适配过程。通过开发OpenHarmony QPA插件,实现窗口管理、事件注入与输入法会话桥接,应用层仅需少量补丁即可重编。数据表编辑、曲线绘制与工程保存在真机上完整可用,成果已上架华为应用市场。项目采用Qt5+ArkTS+XComponent+NAPI架构,收录1247个上游文件,验证了在无传统显示服务器环境下运行复杂桌面应用的可行性,为鸿蒙PC生态补充了重要科研工具。

摘星编程的博客 207

【鸿蒙】把一个 Qt 桌面视频编辑器“搬“上鸿蒙 PC:Olive 移植适配全记录

本文介绍将开源视频剪辑软件Olive 0.1.2移植至HarmonyOS PC/2in1平台的完整过程。基于FFmpeg 7.1.1与Qt Widgets重构,采用ArkTS壳+C++内核(libolivecore.so)架构,实现多轨时间线剪辑、预览与MP4导出全流程功能。重点攻克图形(EGL/GLES替代OpenGL)、音频(OH_AudioRenderer拉模型)、文件系统(沙箱picker授权导入)及GUI(Qt→ArkUI)四大适配难题,最终产出95.63MB双ABI签名HAP,真机运行成功,验证

杰西笔记 5523

Qt 鸿蒙电脑多屏适配:拔掉外接屏,窗口怎么回到主屏?

本文介绍基于Qt的鸿蒙跨平台窗口恢复方案,针对外接屏拔插导致窗口坐标异常问题,提出“屏幕接力”机制。通过判断屏幕是否存在、计算窗口在目标屏的可见区域,实现窗口自动回主屏。核心逻辑包括:动态检测屏幕变化,优先使用同名屏或主屏作为目标,结合qBound确保窗口尺寸与位置在可用区内,并通过延迟回调避免状态冲突。实测验证了单屏环境下窗口恢复的正确性,强调需双屏环境进一步验证热拔插与重启场景下的兼容性。

白天写代码,晚上追AI大模型,偶尔搞点八卦 开源动态|技术干货|实习机会|生态活动 我负责分享,你负责变强 75

XML-RPC C++(xmlrpc-c++)详解:介绍、交叉编译与实战使用

摘要: xmlrpc-c++ 是基于 xmlrpc-c 的 C++ 接口,支持跨平台、跨语言的 XML-RPC 远程调用。本文详解其在嵌入式场景下的交叉编译(以 ARM 为例),包括依赖库 libxml2 及 xmlrpc-c++ 的编译配置与步骤。通过实战示例展示服务器端实现数组求和与结构体处理,客户端调用远程服务,适用于 C++ 与 Python 等系统间通信,尤其适合资源受限的嵌入式设备。

bkspiderx的博客 160

Qt 信号槽、事件队列与对象生命周期

本文解析Qt信号槽机制中“发出更新信号≠数据已更新”的原因,强调需区分通知发送与执行时机。通过C++17与Qt6.8示例说明QueuedConnection在同线程仍非立即执行,揭示Lambda捕获(值/引用)对安全的影响,阐明QPointer仅用于观察对象存活,不延长生命周期或保证跨线程安全。提出读取最新值的四种方案,指出常见误解如“等待毫秒”“调用processEvents”的不可靠性,并建议通过分析线程、连接方式与对象所有权排查问题。

lei_a_gang的博客 271

对于Qt窗口:QMainWindow、QMenuBar、Qmenu、QAction的解析

本文详细介绍了Qt中QMainWindow及其核心组件QMenuBar、QMenu和QAction的使用方法。主要内容包括: QMainWindow整体布局结构:包含标题栏、菜单栏、工具栏、铆接部件、中央控件和状态栏,其中中央控件是必须设置的组件。 QMenuBar的两种创建方式:懒加载模式和手动创建,以及菜单的添加、插入和移除方法。 QMenu的使用:包括添加菜单项、分割线和子菜单,支持富文本和快捷键提示。 QAction的核心功能:复用性、一致性和可扩展性,可以同时添加到菜单栏和工具栏,支持设置图标、快

2503_92929084的博客 872

Qt 6.12 鸿蒙电脑实战:桌面应用的文件读写怎么跨过沙箱这一关

本文基于真实设备实测,详解Qt for HarmonyOS在鸿蒙电脑上的文件权限问题。针对传统桌面程序移植时常见的“路径无效”“权限设置失效”“文件复制失败”三大痛点,通过三类路径验证(沙箱内、沙箱外、权限修改),揭示鸿蒙沙箱机制核心:路径可见≠可访问,权限需显式授权。实测表明,仅使用Context提供的沙箱路径可直接读写;外部文件需通过系统选择器获取URI并持久化授权;而setPermissions()虽返回成功,实际权限不变,属“半通”。文章强调排查应先确认路径归属与授权状态,再调权限,避免误判。

白天写代码,晚上追AI大模型,偶尔搞点八卦 开源动态|技术干货|实习机会|生态活动 我负责分享,你负责变强 168
上一篇: MeeGo 开发指南 1.0 开发教程
下一篇: ARM 系列处理器
datangsoc
博客等级 码龄17年 43粉丝 15原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值