From kde-devel Tue Apr 27 10:31:32 2004 From: Julien Gilles Date: Tue, 27 Apr 2004 10:31:32 +0000 To: kde-devel Subject: Pb with Scrollbars in KHTMLPart/View Message-Id: <87fzapaf0b.fsf () jgilles ! internal ! glmultimedia ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=108306199209612 I am playing with my first application using KDE API ; I just want to display an HTML document in fullscreen without scrollbar. My project (from Hello World example using kdevelop) contains only one class, inheriting KMainWindow. In constructor : { QHBox * box = new QHBox (this); setCentralWidget(box); KURL url = "http://kde.org"; KHTMLPart* br = new KHTMLPart(box); br->view()->setVScrollBarMode(QScrollView::AlwaysOff); br->view()->setHScrollBarMode(QScrollView::AlwaysOff); br->openURL(url); showFullScreen(); } First minor problem : if showFullScreen() is before the KHTMLPart creation, the screen remains grey. But after it'ok. Second problem : the scrollbars are always presents. -- Julien Gilles. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<