News for hackers. Stuff that matters.
Re:Librem 5 Mass Production Phone Has Begun Shipping by toyg on Thursday November 19, 2020 @02:12AM (#25147001)
> GTK application development

Sigh, is this the only way to build apps for it? I hope not...

Re:Librem 5 Mass Production Phone Has Begun Shipping by roblabla on Thursday November 19, 2020 @04:35AM (#25147769)
It's GNU/Linux, you can build apps however you want. The PureOS distro is based on Gnome so GTK is the blessed framework for app development. However, Qt works just as well, and is used a lot in KDE's Plasma Mobile. And if that doesn't suit you either, any other framework will work, with the caveat that they might not support mobile form factor natively.
Re:Librem 5 Mass Production Phone Has Begun Shipping by toyg on Thursday November 19, 2020 @05:30AM (#25148064)
Yeah, I was hoping Qt would be a first-class citizen. My previous experiences with GTK on mobile have been bad (little or no docs, unconsistent APIs, etc etc...).

I had a look at their docs and I like the focus on Python, I'll probably give it a go. If I can get a decent result with PyQt I'll probably order one of these bad boys.

Re:Librem 5 Mass Production Phone Has Begun Shipping by seba_dos1 on Thursday November 19, 2020 @07:56AM (#25148982)
Be aware that Qt's widget library isn't exactly well-suited for mobile usage and mobile apps usually use QtQuick with frameworks like Kirigami.

PureOS Amber unfortunately has a too old Qt to be able to say that it's a "first-class citizen" there :( It's going to change with a coming version that's based on Debian Bullseye though. Meanwhile, Qt apps run very well in Flatpak on Amber already.

Re:Librem 5 Mass Production Phone Has Begun Shipping by swebs on Thursday November 19, 2020 @08:45AM (#25149338)
>Be aware that Qt's widget library isn't exactly well-suited for mobile usage

How so? It's my understanding that QT has been the industry standard for embedded systems.

Re:Librem 5 Mass Production Phone Has Begun Shipping by seba_dos1 on Thursday November 19, 2020 @11:49AM (#25151350)
If you make your own UI, yes. But if you make a desktop-style application that's supposed to adapt its UI to small touchscreens, you're going to have a hard time with Qt Widgets. Even KDE uses Qt Quick for its adaptive apps.
Re:Librem 5 Mass Production Phone Has Begun Shipping by inawarminister on Thursday November 19, 2020 @05:56AM (#25148225)
PinePhone with KDE Plasma Mobile is going to be sold in the next few weeks so you might be interested in that as well!
Re:Librem 5 Mass Production Phone Has Begun Shipping by kop316 on Thursday November 19, 2020 @01:06PM (#25152317)
Qt fines fine on a Librem 5. I personally was able to run musescore on it.
Re:Librem 5 Mass Production Phone Has Begun Shipping by fsflover on Thursday November 19, 2020 @03:32AM (#25147410)
Re:Librem 5 Mass Production Phone Has Begun Shipping by rfvrgvegbegn on Saturday November 21, 2020 @08:54AM (#25169730)
It's just a Linux computer, so you can use whatever you like : Qt, GTK, web, Flutter, LVGL, ImGui, custom OpenGL UI (like Blender & Godot), etc.

But you might prefer a library that has mobile-ready widgets. For that GTK is actually not bad, especially with LibHandy, but QT/Flutter is also be great choice. It's up to you

Re:Librem 5 Mass Production Phone Has Begun Shipping by sneak on Thursday November 19, 2020 @05:24AM (#25148018)
You should see how it works on the alternatives: you have to ID yourself to a multinational just to download the compiler and toolchain!