Skip to content

Etichetă: cpp

Use an enum with custom values with QComboBox

Hello world.

Daily coding brings up new opportunities to search for and discover new ways to accomplish things. Perhaps not always the best solutions but, in time, we’re getting there. Today, life brought upon me a new challenge: simplify previously written code. Among other useful thing I will probably mention in future posts, one needed me to insert a enum with custom values in a QComboBox. I’ll jump right to it. Here’s my enum:

My first Qt application

Good bye Java swing, Hello Qt.

Cross platform is very searched for these days, especially with the number of Linux users growing. The need to build an application that can be used everywhere existed for a very long time, and what I intend to present here is not something new, it’s just new to me.

Qt, pronounced „cute”, is a library for C++, but not limited to that, that can be used to write code that can be compiled on/for almost any operating system, including Linux, OS X, Windows, Android, and iOS(still under development).