Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. QAxWidget使用dynamicCall和querySubObject始终报错!
Forum Updated to NodeBB v4.3 + New Features

QAxWidget使用dynamicCall和querySubObject始终报错!

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 257 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    howerl
    wrote on last edited by
    #1

    开发环境为python和pyside6。
    QAxWidget使用dynamicCall和querySubObject始终报错,代码如下:
    self.ax_widget2.dynamicCall("ActiveDocument.GoTo(int)", 10)
    pycharm一直提示“意外类型:(str, int)可能的类型:(bytes, Any)(bytes, Sequence)”,然后通过“b“转化为bytes格式也不行。请问这两个参数正确的语法是什么啊?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved