Hi,

iI found out how to read something from stdout, Thx for the help.

Now i got my lines in a listview which works pretty well, but I Just need the first chracaters found in each line, as long as there is not more than 1 space.

Output in app:

Auswahl_015.jpg

Output in terminal:

Qt Code:
  1. ubuntu@Laptop:~$ /opt/bin/mediaclient --scandabservices /dev/dab0
  2. Service Name, Service ID, Component ID
  3. EPG Deutschland 0xe0d110bc 0xc024
  4. TPEG 0xe0d010bc 0xc023
  5. TPEG_MM 0xe0d310bc 0xc021
  6. Dlf 0xd210 0xa
  7. Dlf Kultur 0xd220 0xb
  8. Dlf Nova 0xd230 0xc
  9. DRadio DokDeb 0xd240 0xd
  10. Schwarzwaldradio 0x100d 0x7
  11. ENERGY 0x1a45 0x4
  12. SCHLAGERPARADIES 0x10c3 0x14
  13. Absolut relax 0x17fa 0x3
  14. RADIO BOB! 0x15dd 0x16
  15. KLASSIK RADIO 0xd75b 0x6
  16. sunshine live 0x15dc 0x15
  17. Radio Horeb 0xd01c 0x5
  18. ERF Plus 0x1a64 0x2
  19. DRadio Daten 0xe0d00250 0xc001
To copy to clipboard, switch view to plain text mode 

As you can see there is some kind of difference but it would be enough in the first step, to have only the service name displayed in the listview.

The second step is to only read the first 6 characters of the service id, as this is needed for the next step, to tune to this service id.