/*QString转quint)*/
1 QString Port_str = "8000"; 2 quint Port_num; 3 Port_num=quint(Port_str.toUint()); /*quint转QString*/ 4 quint Port_num = 8000; 5 QString IP_str; 6 IP_str = QString::number(IP_num);
/*QString转quint)*/
1 QString Port_str = "8000"; 2 quint Port_num; 3 Port_num=quint(Port_str.toUint()); /*quint转QString*/ 4 quint Port_num = 8000; 5 QString IP_str; 6 IP_str = QString::number(IP_num);