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

QWidget update calls

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.0k 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
    ritesh bansal
    wrote on last edited by
    #1

    Hello All
    I am experiencing a problem of extra paint requests inside q3scrollview::viewportpaintevent().
    I am doing simple thing of switching my application with another windows application.
    I suppose windows keeps paint buffers and hence should not call the paint event of my widget class.

    Is this correct understanding or something is missing from this ?

    Regards
    Ritesh

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I can't say whether you're right or wrong, I can only encourage your to update your code to use QScrollView. The Qt3Support module was meant to help the transition to Qt 4.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        I can't say whether you're right or wrong, I can only encourage your to update your code to use QScrollView. The Qt3Support module was meant to help the transition to Qt 4.

        R Offline
        R Offline
        ritesh bansal
        wrote on last edited by
        #3

        @SGaist
        Thanks.
        I was also thinking of migrating to qscrollview.
        But in my context I think this is a generic behaviour. Means, I have a standalone application which just displays a widget inside a qapplication. I have put in debug prints in the paintevent.
        I saw that this is hit each time this application is focussed out and in.

        myScroll* scroll = new myScroll(NULL,0 );
        scroll->show();
        return application.exec();

        Regards
        Ritesh

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Because a focus change will modify how a widget is painted e.g. dimmer color, slightly greyed etc.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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