×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Resize image, which is in widget on ui form...

    Hello friend,
    I added one image on widget on ui form in Qt.But it is not resize according to screen size,so please help me how can i resize image which is on ui form.Is it possible for me ?
    please help me my friends....

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Resize image, which is in widget on ui form...

    By use of QPixmap scaled function you can resize/draw your image in widgets......

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: Resize image, which is in widget on ui form...

    can you give me any simple example for this with main.cpp file, i am begeinner in QT...plz help

  4. #4
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Resize image, which is in widget on ui form...

    Go through this link

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: Resize image, which is in widget on ui form...

    this example is good,but it will not solve my problem, b'coz i want to resize image,which i added on ui form with the help of styleSheet.So actually i want ,my image must resize according to different screen size like N8,N97,5800 etc.
    plz help
    thanks
    Amit sharma

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Resize image, which is in widget on ui form...


  7. #7
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: Resize image, which is in widget on ui form...

    i am not getting you...what is the use of this link ?

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Resize image, which is in widget on ui form...

    This is stylesheet reference.

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

    Re: Resize image, which is in widget on ui form...

    I'm afraid it's a lost cause. The concept of "reference" is lost on the latest crop of "programmers".

  10. #10
    Registered User
    Join Date
    Nov 2010
    Posts
    79

    Re: Resize image, which is in widget on ui form...

    Do you give me any example for this ?
    Thanks for help

Similar Threads

  1. Replies: 7
    Last Post: 2010-09-22, 09:18
  2. Which item on a form is selected
    By ksadil in forum Mobile Java General
    Replies: 2
    Last Post: 2010-06-14, 13:46
  3. Replies: 7
    Last Post: 2009-05-25, 01:54
  4. Find which item is selected on Form
    By prajapati.ajay in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-25, 15:38
  5. CustomItem resize in Form
    By redpath in forum Mobile Java General
    Replies: 1
    Last Post: 2005-03-15, 19:30

Posting Permissions

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