this post was submitted on 04 Feb 2025
15 points (80.0% liked)

Programming

18116 readers
400 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

How can i connect imagine a Qt interface(C++) with a logic in java. I feel like I've should know this already but I don't, I know there are API but I don't want to do it,

More context: They told me to write an aplication, game such as 4 connect, battleship or that kind of games, so I've thought to make the "snakes and ladders", i knew how i could do the 2 thinks separately but I don't know how to connect the frontend with backend, even tho I knew the games should works with threads. So I don't know if I could do it with the interface in Qt, because the main porpouse of the practice is to work with threads

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 5 days ago (2 children)

Does the frontend need to be written in C++, or can you write the frontend in java too (in a JFrame from the javax.swing package)?

[–] [email protected] 9 points 5 days ago

or if you really wanted qt, using java qt bindings: https://github.com/OmixVisualization/qtjambi

[–] PauMasia 1 points 4 days ago

In class i've learnt PyQT, that is for python, and the main language for all practically is Java, but I want to do it in C++, to learn C++ for my final project, and the QT main language is C++