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. Qtcreator - I can not anymore insert new widget into my user interface.
Forum Updated to NodeBB v4.3 + New Features

Qtcreator - I can not anymore insert new widget into my user interface.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.8k 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.
  • K Offline
    K Offline
    kaimano76
    wrote on last edited by
    #1

    Hi!
    I'm new for this forum and newbie in qtcretor user interface program.
    So, I've exported, moving/copying my previous-folder-project in another laptop to begin from an older user interface and add a new widget to complete my actual;
    After reconfigure and rebuild procedure, I have adjoint new widget (lcdnumber) by graphical method from "design mode" but is not recognized from compiler and show me this error:

    @/dialog.cpp:126: error: 'class Ui::Dialog' has no member named 'lcdNumber'
    ui->lcdNumber->destination(FPS);
    @

    why? in general after the adjoint in the gui is automatically recalled in the code when you digit first letter.....

    I post the the part of code:
    @void Dialog::processFrameAndUpdateGUI(){
    .........
    double FPS = (double)(FPStimer.elapsed()/n);
    ui->lcdNumber->destination(FPS);
    ..........

    }@

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      Welcome to DevNet!

      What is the name of the widget?
      "lcdnumber" or "lcdNumber"

      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        Go to designer mode and open the UI file. Go to property window and see what is the object name given for 'lcd'. I suspect that either lcd is not added to your dialog or it has been given the different object name. By default object name is 'lcdNumber'. This should fix your issue.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kaimano76
          wrote on last edited by
          #4

          !http://i61.tinypic.com/1zg5fed.png!

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kaimano76
            wrote on last edited by
            #5

            This is my tab order object. As you see my lcdnumber is jumped....
            !http://i60.tinypic.com/mb2z2p.png!
            In my property windows lcdNumber is under my QDialog class......

            1 Reply Last reply
            0
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on last edited by
              #6

              There will be header file called ui_dialog.h in build directory. Can you check whether it has lcdNumber ? I suspect that you have some old ui_dialog.h somewhere in the path. This may be causing the issue. Can you chck ui_dialog.h file ?

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kaimano76
                wrote on last edited by
                #7

                Thanks!
                I had a ui_dialog.h into my project folder, so my compiler didn't find my correct ui_dialog.h into build folder!
                Now it's all ok

                1 Reply Last reply
                0
                • dheerendraD Offline
                  dheerendraD Offline
                  dheerendra
                  Qt Champions 2022
                  wrote on last edited by
                  #8

                  You can make this request to Solved State. It will help others as well.

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.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