Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to deal with Qaxobject with "no such property in ..."
Forum Updated to NodeBB v4.3 + New Features

How to deal with Qaxobject with "no such property in ..."

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 546 Views 1 Watching
  • 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.
  • dbsx0214D Offline
    dbsx0214D Offline
    dbsx0214
    wrote on last edited by dbsx0214
    #1

    As far as I know, one way to use Activex on QT is to set it with Qaxobject.

    And here I get stuck with ActiveX “webbrowser”,which is an embedded control (with UUID:{})on C#.

    Everything is Ok except for several missing "propertys".
    For example, if there is an object called "web1" from ActiveX “webbrowser”, I can call "DocumentText" this way on C#:

    string str1=web1.DocumentText;
    

    Now transfering it to QT, I guess I need to put it this way:

    QString str1 = web1->property("DocumentText");
    

    ---maybe not grammatically correct.

    But it fails,giving tips:"There is no such property in ...".

    Then I tried to wrap out all properties , methods through :

    #include <QFile>
    QString myDoc = ui.web1->generateDocumentation();
    	QFile myOutFile("D:/file.html");
    	myOutFile.open(QIODevice::WriteOnly | QIODevice::Append);
    	QTextStream ts(&myOutFile);
    	ts << myDoc << endl;
    

    As expected, there is no such property I can use.
    But would there be some nickname of such property? Indeed, Some propety like "IsBusy" is called "Busy" in QT....

    Some property called "web1.Document.Window.Frame" on C# would be called like"web1.Document.Frame"----just an example ,not grammatically correct.

    And the finding job is really frustrating, as I still get stuck with several missing properties.

    Is there some official way to solve this problem?

    tips: I've googled thoroughly for the problem, and have nothing useful found.

    I hope there is a way to solve it,with QT . I donot want to go with C# from scrach.

    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