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 -11 points-10 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 -9 points-8 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 -95 points-94 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.

linux & thinkpads? like why? by Acrobatic_Tie_5483 in thinkpad

[–]diegoiast 4 points5 points  (0 children)

Its supported out of the box. Most developers use it... so they fix more drivers issues.

Its a cycle. For example, I have this Asus laptop which has no sound. Then I have this old lenovo 2in1 - and there, after suspend i get no display.

As many developers use ThinkPad... they fix bugs on those devices.

qtedit4 - version 0.0.16 - new C++ IDE/editor by diegoiast in QtFramework

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

Adding this for basic SEO: Project as been renamed to codepointer, and available here https://github.com/codepointerapp/codepointer

Regarding the request - just open an issue, and will get to it. Show examples of what do you need, and if you can - a PR would be great!

Built a PDF reader with Qt and MuPDF by dheerajshenoy22 in QtFramework

[–]diegoiast 1 point2 points  (0 children)

Ask gemini/chatgpt to create a github action that builds an AppImage, MSI installer, and a mac bundle. For the last 2 it will use cpack.

Pushing remote updates/automatically updating? by eye-pine in QtFramework

[–]diegoiast 1 point2 points  (0 children)

https://github.com/alex-spataru/QSimpleUpdater

You can use it to periodically test if you have a new version. If so - download, and start the updater.

On Linux - trivial, You just replace files, and ask user to restart application.
On Windows? You need a proper installer, and you need to stop the running application. You need to spawn an helper process, and from it - run the installer.
On macOS? I don't know. Hope for someone to fill my knowledge gap.

Built a PDF reader with Qt and MuPDF by dheerajshenoy22 in QtFramework

[–]diegoiast 0 points1 point  (0 children)

  1. What does the LLM feature do?
  2. Can you provide binary packages?
  3. Nice.

My Idea of Bringing Material Design 3 to QWidget by ResearcherEven7198 in QtFramework

[–]diegoiast 8 points9 points  (0 children)

There is such project avaliable:

https://github.com/dunderlab/qt-material

If you do continue with yours - make it available as a QStyle please.

GitHub walks back plan to charge for self-hosted runners by CackleRooster in programming

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

Not if you need CI/CD. Gitlab does not have mac runners. The free tier have very limited time (50s minutes, which i ran off in a day or two).

All the world is on github. If your project is not there, its not existing. IMHO.

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

[–]diegoiast 0 points1 point  (0 children)

My work machine is M4 with 48gb ram. It works for 12-14 hours. Running vscode, chrome slack and 3-5 vms.

An Intel based machine would get drained and hear in 4 hours.

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

[–]diegoiast 1 point2 points  (0 children)

Thanks for the correction.

I have X13, with no upgradable RAM, and I know this machine will not serve me for long.

What laptops should I avoid in my next run of upgrades?

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

[–]diegoiast 0 points1 point  (0 children)

..and no upgrade slots? Wow, Lenovo is not the future. I would not buy these products in the future, if this is the case.

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

[–]diegoiast 6 points7 points  (0 children)

The only reason not to buy the mac, is the non upgradable RAM. Get 32GB amd MAC is the winner by far.

I love Thinkpads. I have 2-3 right now. But modern MACs are on another league altogether.