QPopupEdit Erratic Width



  • The width of the QPopupEdit box seems to be erratic. In some cases, it fills the entire screen width. In other cases, it’s tiny and too small to contain the form value.

    In Chrome tools, I can modify the following style and it fixes the problem.

    .q-menu.scroll.q-popup-edit {
      min-width: 400px !important
    }
    

    But when I add that style to my project’s styles, it has no effect. I’ve also tried deep selectors, which also have no effect.

    Does anybody know how to set the min-width on the QPopupEdits?



  • It takes the parent’s width i think. You can try playing with content-style or content-class props.


Log in to reply