Hi, Dimitri.
Dimitri Frederickx wrote:
I've created a QGraphicsView with a scene. When I create a QWebView
with a specified width and heigth (setting geometry) and add this to
the scene, the specified width is not taken into account on Windows.
I have been unable to reproduce this on Windows XP. Using the attached
example I am able to alter both the width and height of the web view
when it's in a graphics view.
Could you please test the example and see if it works for you as well,
and if you can alter it to reproduce the problem you are experiencing.
-- Eskil
import com.trolltech.qt.gui.*;
import com.trolltech.qt.core.*;
import com.trolltech.qt.webkit.*;
public class WebViewInGraphicsView extends QGraphicsView {
public WebViewInGraphicsView() {
QWebView view = new QWebView();
view.setGeometry(0, 0, 100, 100);
view.load(new QUrl("http://trolltech.com"));
QGraphicsScene scene = new QGraphicsScene();
scene.addWidget(view).setVisible(true);
setScene(scene);
}
public static void main(String args[]) {
QApplication.initialize(args);
WebViewInGraphicsView v = new WebViewInGraphicsView();
v.show();
QApplication.exec();
}
}
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest