I'm struggling to run Qt's C# examples. Please assist.
-
I'm attempting to run https://github.com/qt-labs/qtdotnet.git cloned using Gittyup, as https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md#quick-start explains, using
code-insiders-1.90.0-1715753654.el8.rpm
on https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso, but nothing seems to work:- Installed https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dotnettools/vsextensions/csharp/2.30.24/vspackage?targetPlatform=linux-x64
- Installed https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dotnettools/vsextensions/csdevkit/1.6.6/vspackage?targetPlatform=linux-x64
- Cloned
https://github.com/qt-labs/qtdotnet.git
. - Opened
$HOME/Software/Git/GitHub.com/qtdotnet
as a folder in VSCode. - The Dev Kit asked me to "upgrade" the folder, and linked to entirely irrelevant documentation not explaining what that means or how to accomplish it, but provided an alternative - choose the C# extension - so I chose that.
- Was prompted to add missing files, so did so.
- Was prompted to choose an
.sln
file, so chose one (one of the three without the third's "windows-
" prefix, and which are labelled "DotNet 6" instead ofwindows-
's "DotNet 8", although I've both installed).
When I attempt to run it or, sometimes, perform one of those aforementioned actions, I am hit with a slew of strange errors - https://bugzilla.redhat.com/show_bug.cgi?id=2280895#c0 happened once, but usually, I'm informed that
Projects failed to load because the Mono could not be found. Ensure that Mono and MSBuild are installed, and check the logs for details.
or that
msbuild
has failed, which seems like it might relate to https://github.com/dotnet/vscode-csharp/issues/5476#issue-1467903164.Where am I going wrong? I'm quite good at PowerShell, and want to learn Qt6, so this seems like the best way to go about it, but it's proving very difficult in comparison to how I recall using VS on Windows 10 two years ago being. However, I don't have a Windows machine or VM to test the repository on (I don't want to install VirtualBox and have a tained kernel).
-
@ChrisW67 said in I'm struggling to run Qt's C# examples. Please assist.:
Why not following the installation instructions on GitHub? I did that. I've detailed that above. I even linked to them.
Then you have Visual Studio not VS Code (which means working on Windows).
I rather evidently don't, if I'm not using Windows. VS doesn't run on anything except an NT or Darwin base. However, I see why you're confused - it appears that I misread https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md?plain=1#L45 as VSC, rather than just VS. How depressing - that'll be the cause of all this, then. Thanks.
-
@RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:
I'm quite good at PowerShell, and want to learn Qt6
My good advice, if you really want to learn "Qt".... Start to learn C++ instead of fiddeling around with Qt.NET bindings.
- Cloned https://github.com/qt-labs/qtdotnet.git.
- Opened $HOME/Software/Git/GitHub.com/qtdotnet as a folder in VSCode.
Why not following the installation instructions on GitHub?
1. Install requirements. 2. Clone repository 3. Open solution file qtdotnet.sln. 4. Press F5.
-
@Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:
Why not following the installation instructions on GitHub?
- Install requirements.
- Clone repository
- Open solution file qtdotnet.sln.
- Press F5.
I did that. I've detailed that above. I even linked to them.
@Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:
My good advice, if you really want to learn "Qt".... Start to learn C++
I don't want to learn a language that I won't want to use - I already know PyQt6 and PySide6 enough that I've been able to create what I want with them, but that means that every time I want to convert a CLI PowerShell script to having a GUI, I have to completely reinvent it in another language.
-
@Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:
fiddeling around with Qt.NET bindings.
! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?
ok, I give up.
https://kdab.github.io/cxx-qt/book/index.html
https://ring-lang.github.io/doc1.16/qt.html
https://github.com/therecipe/qt -
@J-Hilk said in I'm struggling to run Qt's C# examples. Please assist.:
! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?
Qt for MatLab 🤡â˜
@RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:
@J-Hilk, well, Qt is pretty popular, for good reason. I'm as surprised as you are, though. XD
Yeah, but for the best "Qt" experience and to really learn how to use the Qt Framework (which is a C++ Framework), you should use C++.... or at least Qt for Python (via PySide/PyQt), which is reasonable as well...
Everything else (there might be people judging me on that), feels like "Oh Qt is great... so let's make it available for every other god damn platform/languague etc."
If I want to use Qt, I would go with C++/Python.
If I am somehow limited to C# (or some other language besides the two mentioned above), I would't consider using Qt... There might be easier/better alternatives, even though "Qt is great".@RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:
I did that. I've detailed that above. I even linked to them.
You said, you've "opened the folder" in VS Code... opening a directory is not the same as loading a project/solution file.
@RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:
CLI PowerShell script to having a GUI
One guy here is the owner of some "Qt Widget CLI" project on GitHub... Which "renders" simple QtWidgets like buttons and so on, in a CLI environment.
Can't remember who is was actually :(
@kshegunov you (maybe)?
@J-Hilk or you?
@SGaist you know everything :P
Maybe one of you knows what I'm talking about and can link to that. -
Why not following the installation instructions on GitHub?
I did that. I've detailed that above. I even linked to them.Then you have Visual Studio not VS Code (which means working on Windows).
-
@ChrisW67 said in I'm struggling to run Qt's C# examples. Please assist.:
Why not following the installation instructions on GitHub? I did that. I've detailed that above. I even linked to them.
Then you have Visual Studio not VS Code (which means working on Windows).
I rather evidently don't, if I'm not using Windows. VS doesn't run on anything except an NT or Darwin base. However, I see why you're confused - it appears that I misread https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md?plain=1#L45 as VSC, rather than just VS. How depressing - that'll be the cause of all this, then. Thanks.
-
-
@Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:
I did that. I've detailed that above. I even linked to them.
You said, you've "opened the folder" in VS Code... opening a directory is not the same as loading a project/solution file.
I've included six steps of what I did, and to my knowledge, I loaded it. Is VS Code incapable of that, even with the aforementioned extensions installed?
@Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:
CLI PowerShell script to having a GUI
One guy here is the owner of some "Qt Widget CLI" project on GitHub... Which "renders" simple QtWidgets like buttons and so on, in a CLI environment.
Can't remember who is was actually :(
@kshegunov you (maybe)?
@J-Hilk or you?
@SGaist you know everything :P
Maybe one of you knows what I'm talking about and can link to that.Thank you for that. I suppose a TUI isn't a terrible stopgap in some circumstances.
-