Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'append': 0.07; 'creighton': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; 'question.': 0.13; 'do,': 0.15; 'thu,': 0.15; 'ah,': 0.16; 'alexis': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'scrollbar': 0.16; '\xc3\xa9crit\xc2\xa0:': 0.16; 'app': 0.16; 'laura': 0.18; 'hack': 0.18; 'subject:] ': 0.19; 'cc:addr:python.org': 0.21; 'cc:2**1': 0.22; 'sorry,': 0.22; '2015': 0.23; "i've": 0.24; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'skip:" 20': 0.26; 'define': 0.27; '-0700,': 0.29; 'received:se': 0.29; 'running.': 0.29; 'cc:no real name:2**1': 0.29; 'that.': 0.30; 'work.': 0.30; 'fixed': 0.31; 'code': 0.31; 'subject:lists': 0.32; 'case,': 0.34; 'add': 0.34; 'lists': 0.34; 'useful': 0.35; 'something': 0.35; 'should': 0.37; 'area': 0.39; 'data': 0.40; 'subject:with': 0.40; 'your': 0.60; 'back': 0.61; 'show': 0.62; 'header:Message-Id:1': 0.62; 'here:': 0.62; 'received:89': 0.80 To: Alexis Dubois cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: [QT] Scroll multiple lists with one scrollbar In-Reply-To: Message from Alexis Dubois of "Thu, 28 May 2015 03:44:22 -0700." <6a5519e7-be54-4650-98bc-0446bd2316f0@googlegroups.com> References: <53f83314-12a6-4368-894f-13e756b5a888@googlegroups.com> <6a5519e7-be54-4650-98bc-0446bd2316f0@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <15567.1432810454.1@fido> Content-Transfer-Encoding: quoted-printable Date: Thu, 28 May 2015 12:54:14 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Thu, 28 May 2015 12:54:17 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432810463 news.xs4all.nl 2911 [2001:888:2000:d::a6]:36659 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91362 In a message of Thu, 28 May 2015 03:44:22 -0700, Alexis Dubois writes: >Le jeudi 28 mai 2015 12:12:42 UTC+2, Laura Creighton a =C3=A9crit=C2=A0: >> You want to define a scrollable area and then add your labels to it. >> The code here: http://stackoverflow.com/questions/22255994/pyqt-adding-= widgets-to-scrollarea-during-the-runtime >> = >> should show you what you need to do, though for you the job is easier i= f you >> do not need to add the labels after the app is running. >> = >> Laura > >Thanks Laura. >But as I understand the scrollable area, it's useful to scroll widgets. >But here, in my case, I want to scroll inside my widgets. >My QlistWidgets are fixed in size and data are append inside. >Because I want only one scrollbar for all lists, I set the "setVerticalSc= rollBarPolicy" lists property to "ScrollBarAlwaysOff" and tried to do what= I need with a QScrollBar. Ah, sorry, I misunderstood the question. Hmmm. I've never tried to do that. Let me see if I can get something to work. Back later, hack hack hack! Laura