Loading image



  • i have to load the image which is received using udpsocket on line edit

    that i have to show using a progress bar

    how should i do it

    can any body give me the hint



  • Hi
    [quote author="janaki" date="1373970322"]i have to load the image which is received using udpsocket on line edit[/quote]
    I think you mean QLabel

    [quote author="janaki" date="1373970322"]that i have to show using a progress bar[/quote]
    Progress bar is used to show percentage of completion of an operation, what operation would you show?



  • Hello ,

    1. You cannot use QLineEdit to show an image.
      Use QLabel to do so.
      2)To show the Progress of receiving data of image You can use following calculation :
      value_To_Set=(Rec_Bytes*100)/Total_Bytes

    Where value_To_set is the value which would be set on QProgressBar.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.