Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using Rust in Qt project.
Forum Update on Monday, May 27th 2025

Using Rust in Qt project.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on 8 Jan 2024, 10:16 last edited by
    #1

    Hello all!

    If anyone interested in using Rust with Qt application here the example of how to use it without rust-qt-binding-generator

    This example based on using Rust static library that built with C-interface. It's pretty much strait forward approach, just build Rust Static Library and attach it to Qt project. All of this examples based on:

    • https://youtu.be/YcL6CXz1vmY
    • https://youtu.be/cWCZms92-1g
    • https://youtu.be/0HEJFYSxbB8

    All of it is working perfectly with iOS/MacOS and Android of all archs. For Windows and Linux - don't know, but my suggestions it will be Ok too. Just install additional targets for Rust compiler and perform cross compilations for each of requested platforms.

    If you interested in using Rust with native iOS application then follow this examples published by me:

    • Using Rust in Objective-C project
    • Using Rust in Swift project
    B 1 Reply Last reply 8 Jan 2024, 10:17
    0
    • B bogong
      8 Jan 2024, 10:16

      Hello all!

      If anyone interested in using Rust with Qt application here the example of how to use it without rust-qt-binding-generator

      This example based on using Rust static library that built with C-interface. It's pretty much strait forward approach, just build Rust Static Library and attach it to Qt project. All of this examples based on:

      • https://youtu.be/YcL6CXz1vmY
      • https://youtu.be/cWCZms92-1g
      • https://youtu.be/0HEJFYSxbB8

      All of it is working perfectly with iOS/MacOS and Android of all archs. For Windows and Linux - don't know, but my suggestions it will be Ok too. Just install additional targets for Rust compiler and perform cross compilations for each of requested platforms.

      If you interested in using Rust with native iOS application then follow this examples published by me:

      • Using Rust in Objective-C project
      • Using Rust in Swift project
      B Offline
      B Offline
      bogong
      wrote on 8 Jan 2024, 10:17 last edited by
      #2

      The Qt 6 examples with CMake in progress now. When it will be finished will publish it on Github. For now just have no free time for it.

      1 Reply Last reply
      0
      • B bogong has marked this topic as solved on 8 Jan 2024, 10:18

      1/2

      8 Jan 2024, 10:16

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved