×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    how to read a pixmap from a label

    hi everyone,

    here is my problem:
    i want to retreive a QPixmap from a label and transform it as a Byte array to use it in my application,
    i tried to read the context of the label as string ( ui->label->text() ) and then transform it later as byte array but the problem is that ui->label->text() is not returning any data
    is there any way to retrieve the data of the pixmap from the image?
    i would be thankfull for any help ..Thank you

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: how to read a pixmap from a label

    Well, if it's contents are a QPixmap, you'd use pixmap().

  3. #3
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: how to read a pixmap from a label

    Quote Originally Posted by danhicksbyron View Post
    Well, if it's contents are a QPixmap, you'd use pixmap().
    Thank you a lot
    i am able now to retrieve the pixmap from the label thanks to ur help
    have a nice day
    Regards

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: how to read a pixmap from a label

    Don't thank me, thank the Qt documentation that is always there for you to consult, day or night.

Similar Threads

  1. Autoresize of label with pixmap
    By Nocia in forum Qt
    Replies: 4
    Last Post: 2010-10-28, 17:02
  2. Read-only Text Control - or simply Label
    By lelouch.lamperouge in forum Symbian
    Replies: 8
    Last Post: 2009-09-19, 07:25
  3. how to read a data from text file and place in label
    By narendrachinni in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-01, 13:22
  4. How to run Simple Cube Pixmap
    By fshetty in forum Symbian
    Replies: 4
    Last Post: 2009-08-25, 12:42
  5. N95 - OpenGL Pixmap surface support
    By frizi in forum Symbian
    Replies: 0
    Last Post: 2007-07-17, 10:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×