Qt 6.11 is out! See what's new in the release
blog
Path filename
-
I need load a image I have this:
"/Users/macbook/Documents/Projekty_programovanie/QT_APPS/Test/images/yt.png"but I want only "/image/yt.png"
@Eternus
Are you sure you want/image/yt.png? It's possible, but more likely you'll wantimage/yt.png?In any case, there is
QString::split()to split a string into a list on a character, or there isQFileInfo/QDirwhich you can use in combination to parse the path properly and pick up the segments you want. Even simpler may beQDir::relativeFilePath().... -
Hi,
Is it a sub-folder beside your application executable ?