LuxembourgViewer is a C++ project using the Qt framework for calculating the shortest path between two nodes on a map using Dijkstra's algorithm. The program reads an XML file containing nodes and edges, displays the graph on the screen, and allows the user to select the start and end nodes interactively. The shortest path is then calculated and displayed on the map.
- Qt Framework (MSVC 64-bit compiler)
- Visual Studio
- Qt Visual Studio Tools Extension
- Download and install the Qt Framework.
- During installation, ensure you select the MSVC 2019 64-bit compiler.
- Download and install Visual Studio.
- Ensure that the Desktop development with C++ workload is selected during installation.
- Open Visual Studio.
- Navigate to Extensions > Manage Extensions.
- Search for "Qt Visual Studio Tools" and install it.
- Restart Visual Studio to apply the changes.
-
Clone the LuxembourgViewer repository to your local machine:
git clone https://github.com/tbtiberiu/LuxembourgViewer.git
-
Open Visual Studio and go to File > New > Project From Existing Code.
-
Select Visual C++ as the project type and follow the wizard to import the LuxembourgViewer project.
-
Run the application within Visual Studio (
CTRL
+F5
on Windows) -
Left Click on the map to select the starting node (red dot). Right Click on the map to select the ending node (blue dot). The program will calculate and display the shortest path using Dijkstra's algorithm.