Skip to content

Instantly share code, notes, and snippets.

@AllenJB
Last active July 29, 2026 08:11
Show Gist options
  • Select an option

  • Save AllenJB/081d78c3c3b195d221aba5f77cfd0815 to your computer and use it in GitHub Desktop.

Select an option

Save AllenJB/081d78c3c3b195d221aba5f77cfd0815 to your computer and use it in GitHub Desktop.
QT C# Bridge on Fedora 44 with JetBrains Rider

These are notes based on my experience getting the Qt C# Bridge (0.3 Beta) to run on Rider on Fedora 44 (to the point you can run the default project). It's possible not all steps / packages are necessary - these are just the steps I did.

I opted for creating the /qt6bridge_prefix directory here to ensure I didn't break anything else whilst putting files where the build expects to find them.

sudo dnf install dotnet-sdk-10.0 qt6-qtdeclarative-devel qt6-qttools-devel qt-creator ninja
dotnet new install QtGroup.Qt.Bridge.CSharp.Templates
sudo mkdir -p /qt6bridge_prefix/{bin,lib}
cd /qt6bridge_prefix/lib
sudo ln -s /usr/lib64/cmake cmake
# Create qt binaries directory - Fedora renames some qt6 versions of tools 
# and Rider appears to provide no alternative to allow using these
cd /qt6bridge_prefix/bin
sudo ln -s /usr/bin/qmllint-qt6 qmllint
sudo ln -s /usr/bin/qmlformat-qt6 qmlformat
sudo ln -s /usr/bin/qmlls qmlls

rider
  • Install the QML plugin for Rider
  • Create Rider project using QML template
  • Edit the .csproj file to remove extra line returns / whitespace on QtBridgeTemplateRid and QtBridgeTemplateArch values
  • In Settings => Build, Execution & Deployment => Toolset & Build
    • Add the following to MSBuild global properties: QtDir=/qt6bridge_prefix
  • In Settings => Languages & Frameworks => QML
    • Set the QT Binaries path to /qt6bridge_prefix/bin
    • Enable the qmlformat and languages server options below
  • In the Run/Debug Configuration set the environment variable:
    • QT_LOGGING_RULES="qml=true";

Additional Notes

QT_LOGGING_RULES: This re-enables the QML console.* logging, which Fedora disables by default. https://bugzilla.redhat.com/show_bug.cgi?id=1227295 and https://doc.qt.io/qt-6/qloggingcategory.html . The log entries will appear with the prefix "qml" in the Rider console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment