Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7844645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:56:58+00:00 2026-06-02T16:56:58+00:00

I have found zero documentation on this subject (Have I been searching in the

  • 0

I have found zero documentation on this subject (Have I been searching in the wrong places? It seems strange to me).

I simply need to be able to use a Qt GUI for my Vala application. An example would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:57:00+00:00Added an answer on June 2, 2026 at 4:57 pm

    As others have mentioned, Qt and Vala don’t work hand-in-hand, but that doesn’t mean it’s impossible to get them to cooperate. It’s mostly about understanding what’s going on beneath the covers.

    Vala generates C code which is then fed to gcc (or another installed compiler) to produce a binary. Note that one of the Vala designers’ chief goals was for Vala to produce C-based libraries. These can then be used by other languages that accept C-based bindings — Python, Ruby, Java, and so on.

    So, you could use Vala to code a C-based library that your Qt C++ GUI application calls into. The Vala compiler produces a .h file that your Qt app merely #includes.

    The problem with this is that Qt and Vala use different object systems: QObject for Qt, GObject for Vala. (Vala does allow for other backends, and there’s even some thought about Vala producing Qt C++ instead of GObject-based C, but that’s far in the future.) QObject and GObject are not compatible, and so for your QObjects to talk with GObjects, you need to do a lot of manual C-based work. (Writing GObject in C is quite verbose, hence the allure of Vala to hide all of it.)

    But it can be done. Note that Qt will even use GLib’s event loop rather than its own, allowing for the code to commingle in an event-driven application.

    I can’t heartily recommend the above, but in theory it’s possible, mostly because C++ code can easily call C code.

    Another possibility worth considering is make Vala code a DBus server and your Qt code a DBus client. DBus is a fancy IPC, and so this is not suitable for all applications, but it might be for yours. It’s attractive because Vala can easily produce DBus clients and servers (they look like ordinary objects). Tools to produce Qt DBus bindings are available as well. Note that this means your Vala code runs as a separate process and is not an in-process library. See http://live.gnome.org/Vala/DBusServerSample and http://live.gnome.org/Vala/DBusClientSamples

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
This might be a trivial question, but I have not found anything about it,
I'm sorry if this is a duplicate question, I have found some similar ones,
I have found myself designing a language for fun that is a cross between
I have found numerous examples on uploading a file to a web server via
I have found a Tutorial here on how to implement drag and drop in
I have found the way to copy the record that I would like, but
I have found the following command in AWK useful in Vim :'<,'>!awk '{ print
I have found the Form.TopMost property but it puts the form on top of
I have found that how to determine what columns are primary key column of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.