Bonjours j ai une erreur XML ERROR: 494 : "XML declaration not at start of document."
lorsque je change d index dans ma combobox.
Voici le code.
Je voudrais lancer les slots ligue1,ligue2 et autres par appuis sur le fetchButton.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 connect(ligueComboBox, SIGNAL(currentIndexChanged(int)),this,SLOT(combobox(int))); void RSSListing::combobox(int selection) { switch (selection) { case 1: connect(fetchButton, SIGNAL(clicked()),this,SLOT(ligue1())); break; case 2: connect(fetchButton, SIGNAL(clicked()),this,SLOT(ligue2())); break; case 3: connect(fetchButton, SIGNAL(clicked()),this,SLOT(autres())); break; } Si j écrit le code suivant cela fonctionne: void RSSListing::combobox(int selection) { switch (selection) { case 1: ligue1() break; case 2: ligue2() break; case 3: autres() break;
Auriez vous une solution a me proposer,merci d avance.
Partager