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. Gui Event Handler Exception : Illegal Escape Sequence
Forum Updated to NodeBB v4.3 + New Features

Gui Event Handler Exception : Illegal Escape Sequence

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    subaghasree
    wrote on last edited by
    #1

    Hi,
    My application is on Red Hat Linux using QT4.6.3.
    I am using a QTreeView with thousands of rows(some times millions of rows are retrieved) with 10 columns of data. One of the columns use RegExps to convert the data from other column. I get the data from internal database.

    When i scroll the view up and down fast, I get below exception
    * Gui Event Handler
    Caught exception: 'Illegal escape sequence'*

    and cannot use the GUI anymore, as i repeatedly get the exception. If i press ok button of exception dialog another exception dialog with the same exception opens up as if in an infinite loop.
    I have to kill the application from shell.

    Please help me solve this problem
    Waiting for reply.

    Thanks & Regards,
    Subagha

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      please post the reg exp you use...

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • S Offline
        S Offline
        subaghasree
        wrote on last edited by
        #3

        I am converting from one string to another using Regexp
        {a[([0-9]*)]} to {b[\1]}

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          use double-backslashes

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • S Offline
            S Offline
            subaghasree
            wrote on last edited by
            #5

            The user can enter the regular expressions so wrong expressions can also be entered, in such cases i get the exceptions and then there is no way to ue the gui except to kill.
            So how to handle such illegal exceptions

            1 Reply Last reply
            0
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              Do you use QRegExp?
              you can try QRegExp::isValid() ... but doubt it will work.
              Since the user can enter the reg exp it's hardly possible, since when do you know that the user escaped a character on purpose or if you have to escape them for the user...

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              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