首页 \ 问答 \ 如何在Java Swing应用程序上嵌入QWebView(QtJambi)?(How to embed QWebView (QtJambi) on Java Swing Application?)

如何在Java Swing应用程序上嵌入QWebView(QtJambi)?(How to embed QWebView (QtJambi) on Java Swing Application?)

是否可以使用QWebView在Windows,Mac和Linux上的Java Swing应用程序中呈现HTML5页面?

基本上我想拥有像http://qupzilla.com这样的东西,但是对于Java。


Is it possible to use QWebView to render HTML5 pages inside a Java Swing Application across Windows, Mac and Linux?

Basically I would like to have something like http://qupzilla.com but for Java.


原文:https://stackoverflow.com/questions/10475676
更新时间:2023-07-27 10:07

最满意答案

我不认为你可以用百分比来指定数值。

但是,如果您将该值设置为“自动”,我相信它会自动填充空间:

宽度和高度固定值以像素(或大约1/96英寸的设备无关单位)为单位测量。 您可以将这些属性设置为自动,以便根据父面板的大小自动调整子元素的大小。

从微软


i dont think you can specify values in percentages.

however if you set the value to 'auto' i believe it will automatically fill the space:

Width and Height Fixed values measured in pixels (or, device-independent units that are approximately 1/96 inch). You can set these properties to Auto so that child elements will automatically resize depending on the sizing of the parent panel.

from microsoft

相关问答

更多