[Interest] Styling Qt Widgets with Qt Quick
Noah Davis
noahadvs at gmail.com
Sat Jan 25 18:54:58 CET 2020
I've decided that I'm probably better off just writing a normal QStyle
and keeping an eye out for what Qt has planned for unifying Qt Quick
and Qt Widgets theming (https://bugreports.qt.io/browse/QTBUG-68814).
Sorry for replying so late.
On Tue, Jan 7, 2020 at 8:18 AM Michael Jackson
<mike.jackson at bluequartz.net> wrote:
>
> You probably want to look into using CSS to style the Widgets. Then create a loading mechanism to load a new CSS into the application thus changing its appearance. This is what we did for our app. There are a lot of subtle interactions with CSS and each particular desktop environment which can take some time to work through but since you are only working on a Linux distribution you should be fine.
>
> --
> Mike Jackson
>
> On 1/7/20, 7:06 AM, "Interest on behalf of Noah Davis" <interest-bounces at qt-project.org on behalf of noahadvs at gmail.com> wrote:
>
> Thanks for the suggestion. I had a look and they don't seem to be
> using Qt Quick at all though. My goal isn't necessarily to make a
> mobile-ish UI either.
>
> What I want to do is make Qt Quick and Qt Widget apps look the same
> under KDE Plasma or other Linux desktop environments. Ideally, it
> should also be possible to edit the look of the theme without
> recompiling the C++ by editing QML files.
>
> On Mon, Jan 6, 2020 at 5:55 PM Jean-Michaël Celerier
> <jeanmichael.celerier at gmail.com> wrote:
> >
> > > I want to make a Qt Widget style that looks exactly the same as
> > controls that are made with Qt Quick/QQC2/Kirigami. Is it possible to
> > style Qt Widgets with Qt Quick or will it be possible in Qt 6? If it
> > is/will be possible, could it be considered a good idea in the first
> > place?
> >
> > You could look maybe on how Telegram is coded, it's all QWidget and has a
> > really mobile-like feel : https://github.com/telegramdesktop/tdesktop
> >
> > It's using that lib behind the scene : https://github.com/desktop-app/lib_ui
> >
> > Best,
> > Jean-Michaël
> >
> > On Mon, Jan 6, 2020 at 4:14 AM Noah Davis <noahadvs at gmail.com> wrote:
> >>
> >> Hello,
> >>
> >> I want to make a Qt Widget style that looks exactly the same as
> >> controls that are made with Qt Quick/QQC2/Kirigami. Is it possible to
> >> style Qt Widgets with Qt Quick or will it be possible in Qt 6? If it
> >> is/will be possible, could it be considered a good idea in the first
> >> place?
> >>
> >> I'm aware of KDE's qqc2-desktop-style (it makes QQC2 look like Qt
> >> Widgets) and I've heard that Qt plans to make it easier to synchronize
> >> the look of Qt Widgets and Qt Quick in Qt 6, but I don't know the
> >> details.
> >>
> >> Thank you,
> >> Noah Davis
> >> _______________________________________________
> >> Interest mailing list
> >> Interest at qt-project.org
> >> https://lists.qt-project.org/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list