I think I'll not be using mostly #Rust for my graphical programs since it takes way too long to compile all the libraries for #CXXQt on my #PinePhone and #PineTab2, but I can maybe use it for stuff that only uses a few libraries like the thing that runs to set up everything on startup (I'll launch it from a modified script originally intended for #LXQt on #LabWC). I like Rust better than C++ but the compile time is just too much unless I'm on my desktop.

#Retiled #programming #Rustlang #CPP

@n1 I've built a relatively complex app using qt/qml combined with rust through #cxxqt. Its pretty good. Or #slint is basically the same but more rusty if you don't need to run a web view.

I decided against even making Plasmoids becaise I realized it would be too much for me to do while keeping the programs available to run on their own, so I'm going to use Smithay and CXX-Qt to make a compositor (will need layer-shell-qt also, but it's C++ so I can use CXX-Qt for it too.) See also:

https://codeberg.org/DrewNaylor/Retiled/pulls/315

#Retiled #programming #Rust #Smithay #rustlang #CXXQt #KDEPlasma

Split Tiles page for alternate main window + add theme support to toggle switches.

I made it so you can theme toggle switches, give theme files versions, lowercased themeLoader so you can have Qt load the default from a function if you don't have access to the full settings and theme loaders during development,and split the Start app's main window so that the Tiles page is a su...

Codeberg.org

Suddenly decided to work on splitting out the Tiles page so I can eventually make a plasmoid for #RetiledStart . Right now the main window should work still, but the plasmoid isn't ready yet. I did some testing for how I'd make a plasmoid with RetiledStyles, and at first the settings will need to be hard-coded until I can figure out how to do C++ plasmoids, or preferably #Rust with CXX-Qt.
1/3

#Retiled #KDE #KDEPlasma #programming #CXXQt #QtQuick (it's what I use) #Qt #rustlang #CPlusPlus

I like the idea of using Rust and CXX-Qt instead of just C++ or #Python and #PySide, but the filesize for the qml_minimal example is 4.6 MB or so in Release builds, and I don't like the idea of shipping zip files that are 16 MB or more just for three small programs that don't do much (I'm also uncomfortable with #guinget's package size, but I need the libraries that make up that size for core features, I think #SQLite is the main one).

#Rust #Rustlang #programming #Retiled #CPlusPlus #CXXQt

I built and ran CXX-Qt's qml_minimal example on #postmarketOS and wrote a page describing how to do it if you want to do the same thing and don't want to spend several hours trying to figure it out. Still haven't gotten the Cargo-only example to fully build, but this is already pretty good so it'll reduce the amount of C++ you'll have to use anyway.

https://codeberg.org/DrewNaylor/Retiled/src/branch/main/docs/building-cxx-qt-examples.md

#programming #CXXQt #rust #CPlusPlus

Retiled

An attempt at creating a "desktop" environment mainly for Linux phones and tablets that's similar in function to some parts of Microsoft's Windows Phone 8.x, primarily the Start screen, Search app, navigation bar, Action Center, and the status bar. Testing is mainly being done using the PinePhone...

Codeberg.org

There needs to be something easier and better than #Python with up-to-date bindings that can support building #Qt stuff with #musl libc. I really don't like using Python and only do because C++ (or rather, #CMake) is too hard to do new stuff in for me and CXX-Qt won't build with musl (could target a #glibc distro like #DanctNix #Arch, but then I'd be ignoring the entire set of devices supported by #postmarketOS). Why can't I just use #VB transpiled to #Rust?

#programming #cplusplus #CXXQt #CXX

"cxx-qt-lib" doesn't want to compile on my #PinePhone for some reason and I can't see why as QMLKonsole doesn't let me go that far back. Bummer. Not sure what it was but I get a bunch of stuff in the output. #postmarketOS in a VM next with output redirected to a file, I guess.

#programming #Rust #Qt #CXXQt

I've finally gotten CXX-Qt to work (decided to try modifying one of the examples) and it's amazing and I love it!

https://codeberg.org/DrewNaylor/Retiled/issues/259

#Rust #CXXQt #CXX #programming #Qt #QtQuick #Retiled (because this is about something related to the project, that being the fact that I'm going to rewrite Retiled in Rust instead of #Python)

I've been experimenting with CXX-Qt and I think I'm going to go with it instead of C++ because it's just so much easier to work with due to using Rust.

I was going to start using Rust for stuff anyway, but I'm just really impressed with how well it works, and the release binary for a small test based on CXX-Qt's Cargo-only/non-CMake example is 4 MB. That's a little big, but then again, it has all the Rust stuff in it so it's fine. My initial tests covered creating a textbox and having a button to do a search on Bing and it works as I expect it to. The crate I used for opening stuff in the browser is `open`, so that's just something I can look at later. It's really easy to modify the Cargo-only example in the CXX-Qt repo and that's what I was trying stuff out with. Something to note is that Rust requires you to specify which QML files you're using in your `build.rs` file ***and only those files***, or else it'll complain about an expected numeric literal at line 1 column 1 of the first unused QML file in the `qml_files:` list. This is kindof a good thing as I'll be able to ensure only the files I need will be compiled into the program, but then the issue is that they won't be able to be modified by the user without installing Rust so I'll need to have instructions to recompile the project to use different QML files in the Styles. Fortunately, I have theme support now so it's not that bad, but I still need a way to change stuff in `FontStyles.qml` at runtime. Edit: Guess I should link to the repo for myself for later: https://github.com/KDAB/cxx-qt And here's their book: https://kdab.github.io/cxx-qt/book/getting-started/index.html

Codeberg.org

For the KDAB Training Day 2023, we've partnered up with the Rust experts Ferrous Systems to offer you "A taste of Rust (with a drop of Qt)", a full-day training course in Berlin on November 27th. #rustlang #cxxqt #qtdev

🔗 https://www.youtube.com/watch?v=yMUBBvtCwUg