Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Problem with QString

[SOLVED] Problem with QString

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • R Offline
    R Offline
    Romaniy
    wrote on last edited by
    #1

    Hello, everyone.
    I need help with QString variable. I want to create a sql query which contains near 1450 symbols.
    Firstly, I create QString variable. When I'm checking size of my variable I see 1450 symbols. But when I'm trying to execute my QSqlQuery I catch an error. From the qDebug() I see first 1024 symbols normally and next only unreadable symbols. In the same time count show 1450 symbols. Please help my to understand what is wrong.
    Thank in advance

    1 Reply Last reply
    0
    • rootshellR Offline
      rootshellR Offline
      rootshell
      wrote on last edited by
      #2

      Any chance you have escape charactors in it such as \ " ' etc etc

      Certifications: CISSP, MCITP, MCSE, MCSA, BA, AA, AG, CST, CNST, Linux+, Security+, Server+, Network+, A+, iNet+

      Languages: C++, C#, VB, Python, Java

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Romaniy
        wrote on last edited by
        #3

        Thanks for your reply!

        But I can't find any mistake in my string.
        Bye the way, I tried to execute the next code:
        @ QString ar;
        for (int i=0; i < 1020; ++i)
        {
        ar += 'a';
        }
        qDebug() << ar;@

        and have in the end of my output something like that
        ......aaaaaaaaaaaaaaaaaaaa"
        ˜Î4O"š

        Thanks

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Romaniy
          wrote on last edited by
          #4

          It was stupid question)

          Sorry for disturb

          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