小编Dar*_*boy的帖子

如何使用专有编解码器在Windows上编译Qt webengine(5.11)

编译Qt webengine以启用专有编解码器时遇到了很多麻烦,文档不是很清楚.我在stackoverflow上遵循了其他说明,但它不起作用.我得到的错误如下:

Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Run Code Online (Sandbox Code Playgroud)

要么

Needs VS 2015 Update 3 with Cumulative Servicing Release or higher
Qt WebEngine will not be built.
Run Code Online (Sandbox Code Playgroud)

要么

Could not detect Windows SDK Version ('WindowsSDKVersion' environment variable is not set).
Qt Webengine on Windows requires a Windows SDK version 10.0.10586 or newer.
QtWebEngine will not be built.
Run Code Online (Sandbox Code Playgroud)

要么

Needs Visual Studio 2017 or Higher
Qt WebEngine will not be …
Run Code Online (Sandbox Code Playgroud)

qt compiler-errors build visual-studio qtwebengine

6
推荐指数
1
解决办法
6165
查看次数

Sim7080G 模块在使用 GNSS 时无法通过 TCP 发送数据

我购买了 Simcom (Sim7080G) 模块,用于地理定位并通过 TCP 发送数据。这些模块在市场上相当新(它于 2019 年中期首次推出),并且有一些奇怪的功能。我想知道使用它的人是否遇到同样的问题。

在此输入图像描述

我的目标是获取 GNSS(纬度/经度)信息,并通过 TCP 发送它们。

激活并获取 GNSS 信息

AT+CGNSPWR=1 回报OK

AT+CGNSINF回报+CGNSINF: 1,1,20200517191239.000,4x.xxxxxx,6.xxxxxx,473.769,0.00,,0,,1.9,2.1,1.0,,7,,7.9,6.0

连接到任何 TCP 服务器

AT+CNACT=0,1回报OK\r\n\r\n+APP PDP: 0,ACTIVE

AT+CAOPEN=0,0,"TCP",151.101.1.69,80(151.101.1.69 是 stackoverflow.com 的 IP 地址)--> 等待一段时间(例如 +40 秒),然后: +CAOPEN: 0,23\r\n\r\nOK

代码的23意思是:23 Remote refuse,但就我而言,连接从未到达服务器。

只能使用 GNSS 或 TCP,但不能同时使用两者

所有这一切的奇怪之处在于,我可以连接到 TCP 服务器,但当我激活 GNSS 时,它就停止工作了。

gps tcp lte 4g iot

3
推荐指数
1
解决办法
4084
查看次数

C++ /(Qt)指向具有特定方法的任何对象

如何从其他(TranslationManager)类调用所有类上的特定方法?我简化了很多代码.我只想调用setTranslationTextTranslationManager中的任何类.

这些都要考虑到:

  1. 所有课程都有一个setTranslationText方法
  2. 我们应该使用指向类的指针从TranslationManager调用任何类的setTranslationText

    class Interface
    {
       ...
       public:
         void setTranslationText(QString translatedString); 
    }
    
    class AnyOtherInterface
    {
       ...
       public:
         void setTranslationText(QString translatedString); 
    }
    
    ...
    
    …
    Translationmanager::Translationmanager(){
       AnyClass = Interface; // Pointer to Interface Class
       AnyClass->setTranslatioNText("Text");
    
       AnyClass = AnyOtherInterface; // Pointer to AnyOtherInterface Class
       AnyClass->setTranslatioNText("AnotherText");
    }
    
    
    …
    
    Run Code Online (Sandbox Code Playgroud)

c++ qt c++11

0
推荐指数
1
解决办法
101
查看次数

标签 统计

qt ×2

4g ×1

build ×1

c++ ×1

c++11 ×1

compiler-errors ×1

gps ×1

iot ×1

lte ×1

qtwebengine ×1

tcp ×1

visual-studio ×1