Category : user-interface

everyone. I want to create a new, empty window on imgui. It is the first time i use a graphical UI on c++. Now i’ve an empty main and i’ve imported on the code the imgui’s libraries. How can i create a simple window? #include <iostream> #include "Menu.h" #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" int ..

Read more

This error is with wxWidgets 3.1.5, and SFML 2.5.1 I have the following code: (main.cpp) :- #include <SFML/Graphics.hpp> #include <wx/wx.h> #include "wxSfmlCanvas.h" #include "main.h" TestFrame::TestFrame() : wxFrame(NULL, wxID_ANY, "SFML 2.5 w/ wxWidgets 3.1", wxDefaultPosition, wxSize(650, 490)) { mCanvas = new TestSfmlCanvas(this, wxID_ANY, wxPoint(5, 25), wxSize(640, 480)); // Also add a button. wxButton *button = new ..

Read more

I want to open a .crt file (certificate) with system default application , currently the file is stored in local disk , I use QDesktopServices::openurl(QUrl::fromLocalFile(file_path)) , then qt knows it is a local file and select the appropriate system program (if have) to open it. But now I want to keep this file’s content only ..

Read more