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. I have an error-warning when i am debugging my program!
Forum Updated to NodeBB v4.3 + New Features

I have an error-warning when i am debugging my program!

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 6.1k 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.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    Hi i have an error like this everytime i debug my application ( which also cause the debug time to be about 15 seconds )

    @/home/babulas/Desktop/program/mainwindow.ui:-1: error: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget2'.@

    Yes i saw that at the ui file there was 2 layoutwidget so i renamed the one of them layoutwidget2..And no error now.. But just to know.. Is everything ok with the app? Why this happened? Thanks for any reply !

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      It is just a warning, so it's nothing that makes your application crash or fail. uic already corrected it for you. It can lead to real errors only, if you search for the layout by its object name (using "QObject::findChild() ":http://doc.qt.nokia.com/4.7/qobject.html#findChild or "QObject::findChildren() ":http://doc.qt.nokia.com/4.7/qobject.html#findChildren), as those will return the wrong object.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        So i did right renaming one of them to layoutwidget2 manually?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          [quote author="Leon" date="1307382115"]So i did right renaming one of them to layoutwidget2 manually?[/quote]

          Yes, that's the right solution.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Leon
            wrote on last edited by
            #5

            Ok thanks for you reply :)

            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