niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
pyqt scrollview layout
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Jeremy Sanders
*nix forums beginner


Joined: 25 Feb 2005
Posts: 49

PostPosted: Fri Jul 21, 2006 10:36 am    Post subject: Re: pyqt scrollview layout Reply with quote

Felix Steffenhagen wrote:

Quote:
I have a problem with updating contents in a qscrollview.
I've implementented two widgets (PremiseInput and PremiseList).
You can find the source code under
http://www.informatik.uni-freiburg.de/~steffenh/premiseinput.{html|py} and
http://www.informatik.uni-freiburg.de/~steffenh/premiselist.{html|py}

You should ask on the PyQt mailing list - you're much more likely to get an
answer.

Jeremy

--
Jeremy Sanders
http://www.jeremysanders.net/
Back to top
Felix Steffenhagen
*nix forums beginner


Joined: 10 Mar 2005
Posts: 3

PostPosted: Fri Jul 21, 2006 9:54 am    Post subject: pyqt scrollview layout Reply with quote

Hello,

I have a problem with updating contents in a qscrollview.
I've implementented two widgets (PremiseInput and PremiseList).
You can find the source code under
http://www.informatik.uni-freiburg.de/~steffenh/premiseinput.{html|py} and
http://www.informatik.uni-freiburg.de/~steffenh/premiselist.{html|py}

The PremiseInput is a widget containing two QLineEdit's and a QComboBox.
This widget should be showed in the PremiseList widget, where I want
the functionality to dynamically add new PremiseInputs and the widths
of them should be adjusted to the width of the QScrollView, contained
in the PremiseList.
And there is my problem.

The PremiseInput has a sizeHint of 333. When I show the standard PremiseList,
the viewport of the scrollview has this size. But when I resize the PremiseList
widget to a lower or higher width and add a new PremiseInput, the size is
adjusted to the sizeHint and I'm not able to resize the QScrollView content
which is too small for larger window sizes and to high for smaller ones.

My resizeEvent method works, so that widget resizes also resize the QScrollView
and its content, but when I want to add the same functionality to the
addPremise() method, nothing happens.

Does anyone know where the problem lies and perhaps has a solution for me?

regards,
Felix
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Nov 20, 2008 8:52 am | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Memory Layout of a Object mailursubbu@gmail.com C++ 3 Thu Jul 20, 2006 2:24 pm
No new posts PyQT installation /configuration adrian_p_smith@yahoo.com python 7 Sat Jul 15, 2006 8:25 am
No new posts disk layout san raid5 wane Server 3 Wed Jul 05, 2006 7:09 pm
No new posts syntax for print form layout <> Srinath Perl 1 Tue Jun 27, 2006 4:58 am
No new posts ANN: PyQt v4.0 Released - Python Bindings for Qt v4 Phil Thompson python 3 Sun Jun 11, 2006 3:41 pm

Advertising | Music Festival | Debt Consolidation | Download Firefox Extensions and Themes | Mobile Phones
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2014s ][ Queries: 20 (0.0993s) ][ GZIP on - Debug on ]