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 add command bar in QAXWidget for MSWord
Qt 6.11 is out! See what's new in the release blog

How to add command bar in QAXWidget for MSWord

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 298 Views 2 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.
  • P Offline
    P Offline
    PranaliKd
    wrote on last edited by
    #1

    I want to display MSWord appliction on QAXWidget I have tried this way

    WordDocument=new QAxWidget ("Word.Document", this);
    WordDocument-> setGeometry (QRect (0, 0, this->width(), this->height()));
    // WordDocument->setContentsMargins(100,100,100,20);
    // qDebug()<<WordDocument->setProperty("ShowControls", QVariant(true, 0));
    WordDocument->setSizePolicy(QSizePolicy::Expanding,
    QSizePolicy::Expanding);
    // WordDocument->querySubObject("CommandBars");
    // WordDocument->show();
    //qDebug() << WordDocument->generateDocumentation();

    It is displaying wordapplication on my window but without commandbar , menu bar , toolbar.
    Please provide sample code if one have ..I have tried many ways by adding setproperty method, dynamiccall,querysubobject but do not succeed .
    I cant find any detail documentation and example on qt documentation about this

    thank you in advance !

    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