Freitag, 14. Mai 2010

The next step to plug-ins enabled Qt GUI

Today I'll give an example on how easy it is to figure out the root path of an Qt Application. There is a wonderful static Method in the QCoreApplication class called applicationDirPath(). This method returns the directory that contains the application executable. This is very useful to get the application's plug-in directory. Under Linux this even works if links to the executable are used.



The result looks like this:

Keine Kommentare:

Kommentar veröffentlichen