Relative Content

Tag Archive for c++qtoopuser-interfaceqt6

Integrating GUI into Existing C++ Command Line Project

How can I create a GUI for a card game project where players can select cards to play without changing the existing logic functions?
The current implementation works in a terminal, and I want to add a GUI while keeping the backend logic unchanged.
I’ve searched for solutions online, but they all involve changes to the whole code . they simply write the code from scratch in “qt creator “. I would like the GUI to allow players to view their cards, select one, and then have the score calculated using the existing logic. How can I achieve this by adding front-end code while preserving most of the backend logic and keep the code unchanged?
I mean dont want to change string to qstring in the whole code and things like that.
I really need guidance step by step because I dont know where and how to start at all.
I don’t emphasize on using Qt. Any solution is welcomed. Thanks!