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
QtWS25 Last Chance

Qt widget update

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 428 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 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

    JonBJ jsulmJ 2 Replies Last reply
    0
    • D deleted286

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #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

        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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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

        • Login

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