[KPhotoAlbum] Description for HTML-export themes
Tuomas Suutari
tuomas.suutari at gmail.com
Tue Jan 17 21:16:59 GMT 2012
On 17 January 2012 23:06, Steffen Jost <steffenjost at web.de> wrote:
> Yes, your explanations helped me a lot! Thank you! :)
No problem. :)
> I got it working now: .theme files may include a new field "Description",
> which is displayed whenever one selects a theme in the ComboBox now.
>
> For now I placed the description as a word-wrapped text underneath the theme
> selection combo box, but this is ugly: descriptions with a differing number
> of lines cause the size selection checkboxes to shift up and down
> correspondingly. How do I fix that?
Hmm.. Maybe QLabel wasn't a good choice after all, since there is a
need for scrolling. You could try to change the QLabel to readonly
QTextEdit (set the readonly property to true). QTextEdit provides
scrollbars, so it can be fixed size and doesn't mess with the other
widgets in the layout.
> Currently, while I have no experience with GUI design, I am trying to
> reorder that tab, so that the size-checkboxes are above the theme selection
> combobox. This would keep the layout stable, with everything size related on
> top, and just the theme and its description text on the bottom of that tab,
> which makes sense to me. However, all this Qt layout stuff is still a huge
> mystery to me.
I don't think you need to touch the layout, if you just use a widget
that can be fixed size.
--
Tuomas
More information about the Kphotoalbum
mailing list