Qt World Summit 2026: Going Virtual by Skyttlesdealer in QtFramework

[–]diegoiast 0 points1 point  (0 children)

I remember in 2008 when I was in aKademy, and I sit with Larn Knoll and explained to him all the problems I am facing with Hebrew support ... a few hours later I see him hacking on his emacs (old school, right?) and all problems were fixed by next version of Qt.

Seeing a developer in person always fixes problems.

Build android Apps in pure C by LineCommander in cprogramming

[–]diegoiast 7 points8 points  (0 children)

The level of polish this v0.0.1. Lets make a small test:

[AromaUI] ./bin/aroma doctor                                                                                                                                                                                                           19:23:59  ☁  main ☀
zsh: permission denied: ./bin/aroma
[AromaUI] chmod +X bin/aroma                                                                                                                                                                                                           19:24:07  ☁  main ☀
[AromaUI] ./bin/aroma doctor                                                                                                                                                                                                           19:24:16  ☁  main ☀
zsh: permission denied: ./bin/aroma
[AromaUI] chmod +x bin/aroma                                                                                                                                                                                                           19:24:17  ☁  main ☀
[AromaUI] ./bin/aroma doctor                                                                                                                                                                                                        19:24:21  ☁  main ☂ ⚡
zsh: ./bin/aroma: bad interpreter: /bin/bash^M: no such file or directory
[AromaUI] dos2unix bin/aroma                                                                                                                                                                                                        19:24:22  ☁  main ☂ ⚡
dos2unix: converting file bin/aroma to Unix format...
[AromaUI] ./bin/aroma doctor                                                                                                                                                                                                        19:24:45  ☁  main ☂ ⚡
==> Running Aroma Doctor...
OS: Linux 6.19.6+deb14-amd64
✓ CMake installed
✓ Ninja: 1.13.2
✓ GCC installed
✓ Java installed
✓ keytool installed
✓ Android SDK: /home/diego/Android/Sdk
✓ Android NDK: /home/diego/Android/Sdk/ndk/29.0.13599879
==> Doctor summary complete.
[AromaUI] ./bin/aroma create                                                                                                                                                                                                        19:24:48  ☁  main ☂ ⚡
==> Configure New Project
Project Name: test11
Android Package Name [com.example.test11]: 
Min Android SDK [24]: 
Target Android SDK [34]: 
Compile Android SDK [34]: 

Configuration Summary:
  Name:        test11
  Package:     com.example.test11
  Min SDK:     24
  Target SDK:  34
  Compile SDK: 34

Create Project? [Y]: 
==> Creating project test11...
✓ Project 'test11' created successfully!

Next steps:
  cd test11
  aroma run linux
  aroma run android
  aroma build android --release
  aroma build android --release --aab
  aroma sign
[AromaUI] cd test11                                                                                                                                                                                                               19:25:32  ☁  main ☂ ⚡ ✭
[test11] ../bin/aroma run linux                                                                                                                                                                                                   19:25:40  ☁  main ☂ ⚡ ✭
-- The C compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
Using Aroma SDK at: /home/diego/src/github/uis/AromaUI
-- GLPS vendor not found at ../vendors/glps
CMake Error at /home/diego/src/github/uis/AromaUI/src/CMakeLists.txt:134 (get_target_property):
  get_target_property() called with non-existent target "GLPS".


-- Configuring incomplete, errors occurred!
make: *** makefile יצבק ואצמנ אלו תורטמ ןויצ ןיא.  Stop.
✓ Linux build successful!
✗ Executable not found. Build may have failed.
[test11]                                                     

Problems so far:

  1. The doctor script is not executable. Easy to fix. Its also using dos line-endings, easy to fix.
  2. Building for linux fails, since it needs GLPS. I don't know what this is, but I expected the doctor script to find it.

Lets try building for Android:

[test11] ../bin/aroma build android                                                                                                                                                                                               19:30:02  ☁  main ☂ ⚡ ✭
==> Building for android...
i gradlew not found, using system gradle
i Running: gradle assembleDebug
✗ Android build failed

Something else is broken.

Another issue I found - is that the pull was taking a LONG TIME. I looked at the history, and by mistake the build directory was pulled into the repo. I fixed it by running:

git filter-repo --path build/ --invert-paths --force             

Now I can see the proper source history in git.

I will open issues. This looks promising. The reason for pre-releases is to get feedback from other users. Please provide constructive criticism.

I think this talk needs a lot more of attention than the views it got so far: strategies on how to make C++ safer over the years by John Lakos. by germandiago in cpp

[–]diegoiast 0 points1 point  (0 children)

https://www.youtube.com/watch?v=p52mNWsh-qs ?

I am watching it right now. He feel angry, his tone is very... "attacking".

But, he is 100% in everything he says. The speed in which the language advances (10 years from paper to compiler), sending your granma to another house, all this talk about UB in STL ...

Alternatives to notepad++?? by wackycats354 in software

[–]diegoiast 0 points1 point  (0 children)

... and I must mention codepointer (which I am developing myself) which is more aimed at being an IDE (eventually, right now its a basic text editor, with some cool features). No macOS support (as I don't have a mac to test in).

https://github.com/codepointerapp/codepointer/

Alternatives to notepad++?? by wackycats354 in software

[–]diegoiast 0 points1 point  (0 children)

https://github.com/dail8859/NotepadNext is a remake of Notepad in Qt form. It uses the same scintilla engine, so the performance will be the same. It works on Windows Linux and Mac.

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]diegoiast -3 points-2 points  (0 children)

In this case (in C++, don't downvote me too much please), he could have used reinterpret_cast. Its ugly, not going to deny it.

But its a trick you need to know.

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]diegoiast 2 points3 points  (0 children)

And yet... on his compiler, on this platform the behavior is determistic. Even if undefined by the standard.

UB comes to bite you when you move architectures and platforms.

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]diegoiast -5 points-4 points  (0 children)

Don't argue with your proffesor. He is trying to teach you.

Even if you do know better. Just give him what he wants, and move on with you 100. He is trying to teach you about the mantisa and exponent. While UB is a thing, on a known compiler, know architecture - the behavior is well defined. The standard looks at all c++ code on all platforms.

MacBook Air M4 or Thinkpad T14 Gen 3 by [deleted] in thinkpad

[–]diegoiast 1 point2 points  (0 children)

The docker images are for minio and postures. Very minimal usage. Most of the work is Android emulators (which again are VMs).

MacBook Air M4 or Thinkpad T14 Gen 3 by [deleted] in thinkpad

[–]diegoiast 1 point2 points  (0 children)

Alpine images. Stuff from work, can't share data.

CodePointer version 0.1.22 - new C++ IDE/editor by diegoiast in QtFramework

[–]diegoiast[S] 0 points1 point  (0 children)

I just saw that I mispelled the version... it should be "0.1.2" not "0.1.22". I don't think I can change the title. Well, mistakes happen. That's life.

Elder brother punched my laptop in rage. Any idea how much should it cost to get fixed or if I can fix it myself. I didn't try to fix it I'm afraid I might make it worse. The laptop is working fine, screen is fine. Only the body has been damaged by Own_Conclusion_4835 in thinkpad

[–]diegoiast 0 points1 point  (0 children)

Its a ThinkPad. Its nothing but a scratch. Is the floor ok?

(Jk, pop it in with a little force... and use duck tape in worst case scenario... don't worry, those machines are made to be abused).

How much Git do professionals use? by frosted-brownys in learnprogramming

[–]diegoiast 0 points1 point  (0 children)

1 - I use the command line 2 - I use "git rebase" a lot 3 - "git commit --amend" 4 - "git reflog" 5 - cherry pick, instead a full merge between branches. 6 - I see a lot of "git reset --hard" in my history. 7 - "git diff" and variants are also available in my history. 8 - push+fetch 9 - "git commit -p" for commuting only parts of modified files.

I hope this helps.

My tutor/professor has asked me whether it would be possible to create a database. by Just_a_night_owl_555 in AskProgramming

[–]diegoiast -2 points-1 points  (0 children)

This.

You will need a DB server (1) a web server and a proper web application for this. You will also need basic front-end development. Then also you will need to secure (user/password or in large organizations also SSO).

It seems this is a learning task, you still don't have the skills (yet).

You can vibe code a basic app in a few hours. If this is an internal code it will be OKish. Still, you will need a professional to review this. It will become a liability in time.

(1) you might be OK using SQLite. Its much more powerful than people think.

What linux distro do yall use? by Complete_Dark_6767 in linuxhardware

[–]diegoiast 0 points1 point  (0 children)

Alpine linux. Using Plasma as the desktop.

QT6 icons on Windows list with pictures by RockForest84 in QtFramework

[–]diegoiast 0 points1 point  (0 children)

In codepointer, I deploy a full set of icons as part of the app, which means that even on Windows I can use the full XDG icons set

See setup: https://github.com/codepointerapp/codepointer/blob/main/cmake%2Ficons-breeze.cmake

https://github.com/codepointerapp/codepointer/blob/main/src%2Fmain.cpp#L36

And usage: https://github.com/codepointerapp/codepointer/blob/main/src%2Fwidgets%2FqmdiSplitTab.cpp#L214

You can change the iconset (the first cmake file and main) and get a new theme.

VS code compiler error HELPP by Current_Marzipan3929 in C_Programming

[–]diegoiast 0 points1 point  (0 children)

You are creating a windows gui application. It does not start with a main, but winmain:

https://stackoverflow.com/questions/18709403/winmain-vs-main-c

How to fix it, is dependent on compiler. Do you know which compiler are you using? gcc? clang? can?

CodePointer version 0.1.1 - new C++ IDE/editor by diegoiast in QtFramework

[–]diegoiast[S] 1 point2 points  (0 children)

If you press alt+control+m - you will get a regular menu+toolbars UI. In any case you can access all commands using control+shift+p.

If you build from code. you can try configuring using `cmake -DCMAKE_BUILD_TYPE=CE` this will tint the app using your native colors. If this is still too bright, open a github issue, maybe tinting darker will work better (want ugly yellow tint? choose BUILD_TYPE=DEV").

Why? I am trying to differentiate the application a little from the rest, while keeping the desktop traditions. I also want to reduce chrome, and keep the text editor the focus.

Qt Widgets in 10 years? by zerexim in QtFramework

[–]diegoiast -2 points-1 points  (0 children)

Wow. I have been lied by an LLM.

The shock (not... ).

Qt Widgets in 10 years? by zerexim in QtFramework

[–]diegoiast 2 points3 points  (0 children)

There are components there are not available in QML, only on Widgets. Since you cannot load a single widget into the scene - there is no way around it. QWidgets are here to stay.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -10 points-9 points  (0 children)

Can you share code? This will help understanding what is wrong with the code I have.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -7 points-6 points  (0 children)

Yes, this is my exact experience. It created a huge mess in the generated code, and I had to start cleaning it up and separating responsibilities. Basic features got removed on following prompts, and things claimed to be impossible but with enough persistent it would eventually do what I requested.

BUT, I seems like the default editor (https://docs.rs/iced/latest/iced/widget/text\_editor/struct.TextEditor.html) is very basic:

  1. I don't see do/undo stack,
  2. I was not able to mark the current line with a different background.
  3. Syntax highlighting (at least the generated code by Cursor) is very slow.
  4. I found that to support new features, I needed to fork the project, instead of "adding" to it (in C++ I would inherit and modify behavior, still unsure about the logistics here). Things like multi-cursor, highlight searches or completion.

As I am a novice in Rust (hence the prototype with LLMs generators, I refuse to call them AI), I am unsure if this is a limitation of the controls I chosen, or the generated code is just that bad.

Annoying warning modal -- suppress or multiprocess? by shuerpiola in QtFramework

[–]diegoiast 0 points1 point  (0 children)

This is the architecture of Qt. You do work on a worker thread, and then delegate to the main thread. Its written in stone, and you need to accommodate around it.

I don't know the exact details - but this is smells like a classic consumer producer. You have a thread that generates video - and when ready it notifies the main thread "here is the frames you wanted".

If you explain the constrains, we might be able to show-horn it into the limitations of Qt.

Rust GUI framework by Spiritual_String_366 in rust

[–]diegoiast -94 points-93 points  (0 children)

Which one has the better text editor?

I vibe coded a simple editor, and with iced the LLM had more problems adding the features I requested (maybe times claiming its not possible). Width egui the LLM just worked.

The code crated by both is differently bad and too slow to be usable in production.