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. no member named 'sensivity' in 'Ui::Widget'
Forum Updated to NodeBB v4.3 + New Features

no member named 'sensivity' in 'Ui::Widget'

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 2.9k Views 2 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.
  • R Offline
    R Offline
    RahibeMeryem
    wrote on last edited by
    #1

    Hi,

    I can not get text from the ui label. I dont understand why.

    Widget::Widget(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::Widget)
    {
        ui->setupUi(this);
    

    and there is label : sensivity . I added from UI

    and this is :

    SENSIVITY = ui->sensivity->text();
    

    give error:

    widget.cpp:1019: error: no member named 'sensivity' in 'Ui::Widget'
        SENSIVITY = ui->sensivity->text();
                    ~~  ^
    

    any idea...

    I rebuild project but still same problem.

    A jsulmJ 2 Replies Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      The code
      SENSIVITY = ui->sensivity->text();
      is that in a cpp file ?

      i would press f2 on ui->setupUi(this);
      and see it does in fact create such widget.

      1 Reply Last reply
      1
      • R RahibeMeryem

        Hi,

        I can not get text from the ui label. I dont understand why.

        Widget::Widget(QWidget *parent) :
            QWidget(parent),
            ui(new Ui::Widget)
        {
            ui->setupUi(this);
        

        and there is label : sensivity . I added from UI

        and this is :

        SENSIVITY = ui->sensivity->text();
        

        give error:

        widget.cpp:1019: error: no member named 'sensivity' in 'Ui::Widget'
            SENSIVITY = ui->sensivity->text();
                        ~~  ^
        

        any idea...

        I rebuild project but still same problem.

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @RahibeMeryem You can post the ui_widget.h code here too and we can tell if it has that actual member. Of course you could check your ui file as well to make sure it's in there and labeled sensitivity.

        If you are still stuck post the ui_widget.h or the widget.ui (guessing at that name) file.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply
        0
        • R RahibeMeryem

          Hi,

          I can not get text from the ui label. I dont understand why.

          Widget::Widget(QWidget *parent) :
              QWidget(parent),
              ui(new Ui::Widget)
          {
              ui->setupUi(this);
          

          and there is label : sensivity . I added from UI

          and this is :

          SENSIVITY = ui->sensivity->text();
          

          give error:

          widget.cpp:1019: error: no member named 'sensivity' in 'Ui::Widget'
              SENSIVITY = ui->sensivity->text();
                          ~~  ^
          

          any idea...

          I rebuild project but still same problem.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @RahibeMeryem said in no member named 'sensivity' in 'Ui::Widget':

          sensivity

          Maybe it's called sensitivity?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          3
          • jsulmJ jsulm

            @RahibeMeryem said in no member named 'sensivity' in 'Ui::Widget':

            sensivity

            Maybe it's called sensitivity?

            R Offline
            R Offline
            RahibeMeryem
            wrote on last edited by
            #5

            @jsulm

            "sensivity" name of the label. its correct. Now I added a QSlider and cant see in my running GUI.

            I think some where QT Creator stuck. Clean and rebuild didnt work.

            Any other way to re generate UI ?

            J.HilkJ 1 Reply Last reply
            0
            • R RahibeMeryem

              @jsulm

              "sensivity" name of the label. its correct. Now I added a QSlider and cant see in my running GUI.

              I think some where QT Creator stuck. Clean and rebuild didnt work.

              Any other way to re generate UI ?

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @RahibeMeryem educated guess, you have uncheck the "Shoadow build" Checkbox in your Build Settings?

              I had it, when I ran without shadow build, that a "clean" did in fact not clean everything and the ui-file buged out.

              Simplest solution select a new shadow build folder.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              1
              • R Offline
                R Offline
                RahibeMeryem
                wrote on last edited by
                #7

                What I discovered I check out the shadow build option from project now all is ok.

                Some how QTCreator using old UI code instead of edited one.

                J.HilkJ 1 Reply Last reply
                0
                • R RahibeMeryem

                  What I discovered I check out the shadow build option from project now all is ok.

                  Some how QTCreator using old UI code instead of edited one.

                  J.HilkJ Online
                  J.HilkJ Online
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @RahibeMeryem
                  with unchecking it, you selected a new build folder, your project folder, thats going to get messy pretty quickly.

                  leaving it checked and simply deleting the build folder would lead to the same result.


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved