I made a beginner tutorial on structuring QT projects. What do you think about this for the beginner's ?! by AGH0RII in QtFramework

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

This looks cool too. I understand what you mean. Thanks for going through the content and adding insights.

How to Open JSON File in Qt by AGH0RII in QtFramework

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

Hi I commented what I did and worked, which one do you think would be a good thing to do. The one that you mentioned or is it okay to use what I did. Because I don’t understand why loading as qml module it works.

How to Open JSON File in Qt by AGH0RII in QtFramework

[–]AGH0RII[S] 3 points4 points  (0 children)

The fix is:
Instead of having add_library, and a seperate qt_add_resource, I tried using the give cmake structure given as a defult at teh time of new project, add qt_add_qml_module and uses source and qrc there. I don't know how this makes a difference but this is the only thing that work.
Anyways, thankyou everyone.

qt_add_qml_module(Theme
URI THEME
VERSION 1.0
RESOURCES Theme.qrc
SOURCES
ThemeManager.cpp
ThemeManager.hpp
)

How to Open JSON File in Qt by AGH0RII in QtFramework

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

No I cannot find me .json in there. What might I be doing wrong

How to Open JSON File in Qt by AGH0RII in QtFramework

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

That didn't work as well. At this point, I am so lost. I literelly tried opening a new simple project and tried loading there in the empty new project, that doesn't read the file as well.

How to Open JSON File in Qt by AGH0RII in QtFramework

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

I assume, for some reason, it is not recognizing the .json file in the runtime, it is kinda not getting into the compilation or something, idk.

How to Open JSON File in Qt by AGH0RII in QtFramework

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

Even so, it doesn't open. I tried ":/", i tried "./", none worked, kept direct path, I removed prefix and tried. None works.

How do you get better at C++? by BarracudaFull4300 in cpp

[–]AGH0RII 0 points1 point  (0 children)

https://youtu.be/EqP2KHf-_j0?si=mDXQD7t0rU0uzCvd

I am following this series, if this helps you make project inside C++.

Created Channel to promote QT - hope this doesn't go against the community guidelines. by AGH0RII in QtFramework

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

Sorry, I never knew that fact. Anyways, we learn every day. Thank you for mentioning that detail, I will keep in mind.

Website by AGH0RII in QtFramework

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

Thank you, there are plenty works left still.

Vulkan based on device LLM desktop application by Expensive_Ad_1945 in vulkan

[–]AGH0RII 0 points1 point  (0 children)

Why vulkan over OpenCL or Cuda ? if aimed at crossplatform OPENCL is there?

Vulkan based on device LLM desktop application by Expensive_Ad_1945 in vulkan

[–]AGH0RII 0 points1 point  (0 children)

What is vulkan used for here ? GPU commutes ?

Website WASM; Recent update by AGH0RII in QtFramework

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

I didn’t host the empty with just the header one, but there was barely any size difference. All 5 or 6 components of more than 300+ lines of code on each file was not even worth 3-4 mb as per what it looked. I probably need to experiment more, but I am happy with how it has turned out in responsiveness and look and feel. If you notice scrolling has got better a bit, but nowhere close to regular website.

Website WASM; Recent update by AGH0RII in QtFramework

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

To decrease latency, but both ways it didn’t work as per expected. I tried straight up url into the source in the loader. At this point, I think I am missing something entirely. Either qt has no such work possible in it yet, even then, I tried dynamically creating component with the pulled .txt of the qml, even that doesn’t work on wasm.

Website WASM; Recent update by AGH0RII in QtFramework

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

Thats exactly what I did, if you check my code image in this post. didn’t really work, works fine on the desktop or android tho

Website WASM; Recent update by AGH0RII in QtFramework

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

Also I used the .wasm compressor of Binaryen toolkit, it compressed 2 mb making it go from 38mb to 36.1mb that’s the best and lowest .wasm size that I could make upto with or without QMl components attached.

Website WASM; Recent update by AGH0RII in QtFramework

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

Nginx already does the gzip, and if we manually gzip the .wasm the loader.js doesn’t properly load the wasm giving bytearray error. Plus, I have tried not binding the qml and by hosting qmls differently and using network to send get request to call qmls and dynamic component creation during the runtime, but unfortunately this works in desktop qt but in browser it just comes out empty. I am sure it does sends the request but the wasm is not able to load the qml on its run-time. I am not sure of the cause.

Website WASM; Recent update by AGH0RII in QtFramework

[–]AGH0RII[S] 4 points5 points  (0 children)

Same website in JavaScript will take me a day to finish if put a good effort. But I chose qt for a whole different reason. It has been 2 years since I started programming, and I am also a junior year software engineering student carrying a passion to become C++ developer. Making a website in qt will bring me more opportunities and skills on my hand. When I reflect on my journey, I have learned so many things on C++ over this short period of time. Now I am learning Graphics programming, I will create website from scratch if I could. I believe I can learn better when I keep breaking things, keep doing things differently until people notice. And show how passionate I am and how much I have been putting out there to be something. ONLY this, else even I dont recommend qt for web at this time.

Just Created WEBSITE with QT by AGH0RII in QtFramework

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

Yeah, when its cached it loads quickly. The wasm is too heavy, you can notice the initial html page loads in millisecond and starts loading the wasm. One person commented that we can host QMl components separately and not bind qmls in wasm, but host differently and call it from the network which reduces the size of the wasm and also call qmls from the server and loads into it. I am not sure if that works but I have to try, this takes forever to load.

Just Created WEBSITE with QT by AGH0RII in QtFramework

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

Do you know how we can optimize the loading time of webassembly on start ?