English 中文(简体)
QtWebkit作为桌面应用程序
原标题:QtWebkit as a desktop application GUI [closed]

我们不准许对书籍、工具、软件图书馆以及更多的图书馆征求建议的问题。 你可以ed问这个问题,以便用事实和引言回答。

Closed 3 years ago.

我很想知道,是否有任何人了解如何使用QTWeb建立超文本通用公平市价的优良理论或文章。 窗口桌面应用程序的基数。

我主要关注的是,在请诉人之间传递信息、事件和信息(例如,在C++撰写的)和德国马克(QtWebKit)。

需要可靠的参考资料......

最佳回答

这一胜利是容易的:由于安全关切,网络浏览器正在消亡。 因此,很难在网页上从联合材料到浏览器以外的东西。

Also, QtWeb Kit isn t a very open AP. 在你的案件中,最大的障碍是,它没有给你机会进入OM,因此,你只能取代全部的“超文本”。

因此,你需要配送和写许多法典,以落实失踪的文稿和职能。

由于Qt 4.6已经获释,所以有QWebElement(,例如,见docs),因此,至少可以进入OM并修改。 这将使得许多事情更加简单。 我建议由谁控制浏览器: 你们的 app是否在C++外叫 calls,或者在C++中真的叫 the?

更简单的办法是,使您的想法工作成为在您的问世时启动内部网络服务器,然后打开一个标明当地服务器URL的QtWebKit观点。 然后,你可以使用所有标准网络开发工具。 粗略地将这一技术用于其内部帮助系统。

问题回答

来自不同章节的Im拷贝/剪辑,但我如何插入一个可供打字的物体,然后我用javascript与主谈。 Seems to work well...

void MyApi::setWebView( QWebView *view ) {

    QWebPage *page = view->page();
    m_frame = page->mainFrame();

    attachObject();
    connect( m_frame, SIGNAL(javaScriptWindowObjectCleared()), 
        this, SLOT(attachObject()) );

}

void MyApi::attachObject() {

    m_frame->addToJavaScriptWindowObject( QString("MyApi"), this );

}

因此,在javascript中存在的物体,我可以指从<代码>上提供的任何位置。 MyApi阶级。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签