By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

pyqt scrollview layout

P: n/a
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
Jul 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Felix Steffenhagen wrote:
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/
Jul 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.