Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. qt写文件的时候会出现很多换行
Forum Updated to NodeBB v4.3 + New Features

qt写文件的时候会出现很多换行

Scheduled Pinned Locked Moved Solved Chinese
3 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hello_world
    wrote on last edited by
    #1

    你好
    我问一下in<<ui->AGENT_PORT->text()<<"="<<ui->AGENT_PORT_DATA->text()<<"\r\n";
    in<<ui->WEB_DIR_IIS->text()<<"="<<ui->WEB_DIR_IIS_DATA->text()<<"\r\n";
    就是我用上面这两句,写文件的时候中间为何出很多换行
    0_1534323145788_4597d490-263b-41c6-a2e6-119677d4d8dd-image.png

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hello_world
      wrote on last edited by
      #2

      已解决, in<<ui->GID->text().simplified()<<"="<<ui->GID_DATA->text().simplified()<<"\r\n";即可

      1 Reply Last reply
      0
      • jiancaiyangJ Offline
        jiancaiyangJ Offline
        jiancaiyang
        wrote on last edited by
        #3

        qDebug( ) .noquote( ) 也可以做到。

        我们自己的论坛:http://qtdream.com
        擅长三维角色仿真动画。

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved