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. whose bug is it ?
QtWS25 Last Chance

whose bug is it ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 291 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    Just a comment (rant ) , I do not expect a solution.

    When the long single line of code "extends" to another editor line
    and gets commented out ("//") the compiler skips only the first line

    // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
    this, SLOT(itemActivated(QListWidgetItem*)));

    Just a comment (rant ) , I do not expect a solution.

    Christian EhrlicherC JoeCFDJ 2 Replies Last reply
    0
    • A Anonymous_Banned275

      Just a comment (rant ) , I do not expect a solution.

      When the long single line of code "extends" to another editor line
      and gets commented out ("//") the compiler skips only the first line

      // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
      this, SLOT(itemActivated(QListWidgetItem*)));

      Just a comment (rant ) , I do not expect a solution.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would guess you should ask the C standards committee to 'fix' it...

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Kent-DorfmanK 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        I would guess you should ask the C standards committee to 'fix' it...

        Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by Kent-Dorfman
        #3

        It's the editor text wrapping setting.

        The C/C++ // standard only applies to text lines that don't contain any \n or \r chars. if you look at the source file using od -cx you'll see that the text wrap is inserting newline chars.

        you can/should use /* */ format to avoid this.

        1 Reply Last reply
        2
        • A Anonymous_Banned275

          Just a comment (rant ) , I do not expect a solution.

          When the long single line of code "extends" to another editor line
          and gets commented out ("//") the compiler skips only the first line

          // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
          this, SLOT(itemActivated(QListWidgetItem*)));

          Just a comment (rant ) , I do not expect a solution.

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          @AnneRanch said in whose bug is it ?:

          // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
          this, SLOT(itemActivated(QListWidgetItem*)));

          // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
          //this, SLOT(itemActivated(QListWidgetItem*)));
          
          or
          /* connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
          this, SLOT(itemActivated(QListWidgetItem*))); */
          
          or 
          #if 0
          connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
          this, SLOT(itemActivated(QListWidgetItem*))); 
          #endif
          
          A 1 Reply Last reply
          1
          • JoeCFDJ JoeCFD

            @AnneRanch said in whose bug is it ?:

            // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
            this, SLOT(itemActivated(QListWidgetItem*)));

            // connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
            //this, SLOT(itemActivated(QListWidgetItem*)));
            
            or
            /* connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
            this, SLOT(itemActivated(QListWidgetItem*))); */
            
            or 
            #if 0
            connect(ui->list, SIGNAL(itemActivated(QListWidgetItem*)),
            this, SLOT(itemActivated(QListWidgetItem*))); 
            #endif
            
            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #5

            @JoeCFD Sorry , I did not ask for alternative solution, and there are no escape characters in the affected line either.
            My uneducated guess is - when the "//" definition is to skip until new line
            it should do so .
            The compiler is working fine detecting the "new line " created by the editor.
            Reader if free to interpret my uneducated guises to his liking.
            END OF RANT

            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