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. Qt widget update
Forum Updated to NodeBB v4.3 + New Features

Qt widget update

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 470 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.
  • D Offline
    D Offline
    deleted286
    wrote on 3 Mar 2021, 08:52 last edited by
    #1

    Hi everone. Im trying to learn update issue of a widget. I want to ask something. What is the main difference between

    QWidget::update();
    

    and

     ui->groupBoxA->update();
    

    I have some progress bar on my group box, ı want to update them. What if im updating the widget or updating the group box

    J J 2 Replies Last reply 3 Mar 2021, 08:54
    0
    • D deleted286
      3 Mar 2021, 08:52

      Hi everone. Im trying to learn update issue of a widget. I want to ask something. What is the main difference between

      QWidget::update();
      

      and

       ui->groupBoxA->update();
      

      I have some progress bar on my group box, ı want to update them. What if im updating the widget or updating the group box

      J Offline
      J Offline
      JonB
      wrote on 3 Mar 2021, 08:54 last edited by JonB 3 Mar 2021, 08:56
      #2

      @suslucoder

      ui->groupBoxA->update(); calls update() on ui->groupBoxA. QWidget::update(); calls update() on whatever this is.

      As we have said before, you should not find you are needing to use update() at all. You would be best served by producing a minimal example where you claim it is necessary, for people to look at....

      1 Reply Last reply
      2
      • D deleted286
        3 Mar 2021, 08:52

        Hi everone. Im trying to learn update issue of a widget. I want to ask something. What is the main difference between

        QWidget::update();
        

        and

         ui->groupBoxA->update();
        

        I have some progress bar on my group box, ı want to update them. What if im updating the widget or updating the group box

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 3 Mar 2021, 08:57 last edited by
        #3

        @suslucoder The first one calls update() on the widget where it is called (same as this->update() except the widget overrides update() - in that case the base implementation is called).
        Second one calls update() on groupBox.
        This are C++ basics, nothing Qt related.

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

        1 Reply Last reply
        1

        1/3

        3 Mar 2021, 08:52

        • Login

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