Thanks for all of that JP, I'm still digesting some of that, but I cannot figure out where the partial opacity black overlay is coming from?
1) it does not follow the positioning of the highlight (see attached) 2) I can't change it's color or opacity. I agree with "so perhaps consider visualizing the highlighted state in the delegate background instead." But I want go get whatever that partial opacity black is under my control. > Sent: Monday, April 09, 2018 at 2:59 PM > From: "J-P Nurmi" <jpnu...@qt.io> > To: "interestqt-project.org" <email@example.com> > Subject: Re: [Interest] ComboBox styling problems > > > On 27 Mar 2018, at 03:41, Jason H <jh...@gmx.com> wrote: > > > > I sent this a while back, but I never got help, and I still haven't figured > > it out. > > > > ----- > > I'm trying to style ComboBox, but I am getting a highlight that is not > > placed correctly, and there seems to be a semi-transparent black overlay > > that is also applying itself over the highlight? > > > > Can someone tell me what I'm doing wrong? > > Some comments to get you started: > - Fix the "width: control.height" bindings. > - In the delegate, use Text as a contentItem, and Rectangle as a background. > Control controls the size of contentItem, and background follows the size of > the Control by default. No need for width/height bindings for either. > - If you want to use fontSizeMode, specify the font size range: > http://doc-snapshots.qt.io/qt5-5.11/qml-qtquick-text.html#fontSizeMode-prop > - Set a higher Z-value if you want the ListView highlight to appear over the > delegates: > https://doc-snapshots.qt.io/qt5-5.9/qml-qtquick-listview.html#stacking-order-in-listview > but you will be just hiding the entire delegate with an opaque rectangle, so > perhaps consider visualizing the highlighted state in the delegate background > instead. > - What's the purpose of the opaque Rectangle inside the ScrollIndicator? > > -- > J-P Nurmi > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest