[SailfishDevel] Dialog/ListView/Menu/Search

Thomas Tanghus thomas at tanghus.net
Sat Jan 4 15:00:29 UTC 2020

I must be possible to do, but maybe my head is just wired wrong - well, I do 
have that one paper already, so... :D

How to have a SilicaListView with a SearchField inside a Dialog with a 
DialogHeader and a menu, where the SearchField is below the DialogHeader, 
the list starts below both?

Every even semi-logical way to do this ends up, for me at least, with an 
unholy mess.

What for me would seem logical is be a variation of:

Dialog {
    SilicaListView {
        PullDownMenu { /* MenuItems */ }
        header: DialogHeader {
            id: dialogHeader
        SearchField {
            parent: dialogHeader.extraContent


Dialog {
    SilicaListView {
        PullDownMenu { /* MenuItems */ }
        header: Column {
             DialogHeader {}
             SearchField {}

Neither works, but as coderus wrote to me in a PR 4-5 years ago, I do weird 
stuff ;)

I could write all the variations I've tried, but that would just be a parade 
of more weird stuff with variations over missing or misplaced header, menu, 
search field or list.

Med venlig hilsen / Best regards

Thomas Tanghus

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200104/adf9f678/attachment.sig>

More information about the Devel mailing list