[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445068: libqt4-gui: QAbstractItemView::setVerticalScrollBar bug

Package: libqt4-gui
Version: 4.3.1-2
Severity: normal

When loading a custom scrollbar to a QAbstractItemView via
setVerticalScrollBar or setHorizontalScrollBar, the scrollbar will no
longer be displayed correctly, as soon as a new model is loaded through

The attached file demomstrates this for setVerticalScrollBar

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (800, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libqt4-gui depends on:
ii  fontconfig              2.4.1-2          generic font configuration library
ii  libaudio2               1.8-4            The Network Audio System (NAS). (s
ii  libc6                   2.6.1-1+b1       GNU C Library: Shared libraries
ii  libfontconfig1          2.4.2-1.2        generic font configuration library
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.2.1-4        GCC support library
ii  libgl1-mesa-glx [libgl1 7.0.1-2          A free implementation of the OpenG
ii  libglib2.0-0            2.14.0-2         The GLib library of C routines
ii  libglu1-mesa [libglu1]  6.5.2-7          The OpenGL utility library (GLU)
ii  libice6                 1:1.0.0-3        X11 Inter-Client Exchange library
ii  libjpeg62               6b-13            The Independent JPEG Group's JPEG 
ii  libmng1                 1.0.9-1          Multiple-image Network Graphics li
ii  libpng12-0              1.2.15~beta5-1   PNG library - runtime
ii  libqt4-core             4.3.1-2          Qt 4 core non-GUI functionality ru
ii  libsm6                  1:1.0.0-4        X11 Session Management library
ii  libstdc++6              4.2.1-4          The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.0-7        X11 client-side library
ii  libxcursor1           X cursor management library
ii  libxext6                1:1.0.0-4        X11 miscellaneous extension librar
ii  libxfixes3              1:4.0.1-4        X11 miscellaneous 'fixes' extensio
ii  libxi6                  1:1.0.0-5        X11 Input extension library
ii  libxinerama1            1:1.0.1-4        X11 Xinerama extension library
ii  libxrandr2              2:1.2.2-1        X11 RandR extension library
ii  libxrender1             1:      X Rendering Extension client libra
ii  libxt6                  1:1.0.0-5        X11 toolkit intrinsics library
ii  zlib1g                  1: compression library - runtime

Versions of packages libqt4-gui recommends:
pn  qt4-qtconfig                  <none>     (no description available)

-- no debconf information
#include <QApplication>
#include <QListView>
#include <QStringListModel>
#include <QScrollBar>

int main(int argc, char **argv) {

	QApplication app(argc, argv);
	QListView *lv = new QListView();
	QStringListModel *model= new QStringListModel();

// relevan start
	lv->setVerticalScrollBar(new QScrollBar());
// relevant end



Reply to: