Home > Mobile >  QT setText (& quot; Aaa"); Not immediately according to aaa, the mouse point in to show, why?
QT setText (& quot; Aaa"); Not immediately according to aaa, the mouse point in to show, why?

Time:12-03

In the QT setText (" aaa "); Not immediately according to aaa, the mouse point in to show, why?

CodePudding user response:

After the update setText should be ok

CodePudding user response:

If the update doesn't work, try to get the size, and then change the size size setsize once, then change to the original size,

CodePudding user response:

LZ junction post rate of 0, your code on the first

CodePudding user response:

No code how to solve

CodePudding user response:

There is no update, the mouse to click operation to trigger the refresh operation interface

CodePudding user response:

Actually upstairs said is not entirely correct, as long as the mouse detects changes will refresh interface, you can also manually refresh interface, function call repaint ()

CodePudding user response:

If you set up a transparent interface properties, the likely page redraw not in time, can try
The connect (this, SIGNAL (mySetText (QString)), label, SLOT (setText (QString)), Qt: : QueuedConection);
  •  Tags:  
  • Qt
  • Related