Results 1 to 3 of 3

Thread: Inserting Images in the form

  1. #1

    Question Inserting Images in the form

    Hi I am a newbie in QT

    I am using visual studio 2008 for programming with QT 4.4.3

    I am facing a problem. I need to insert an image in the form

    I create a QLabel and then go to its property and click on pixmap but in the resources there is nothing and VS does not give me an option to choose images from the computer


    Can someone help me out in this regard

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Inserting Images in the form

    why dont u use setPixmap() on QLabel..why be so dependent on Designer?

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Inserting Images in the form

    hi,

    well it's your choice to set the pixmap from the designer or the source code by setPixmap but there should be an option that lets you to choose a file from your computer. Anyway if it's not there, maybe Qt had a problem with the extension or type of the file.

Similar Threads

  1. visible main form?
    By triperzonak in forum Newbie
    Replies: 1
    Last Post: 12th June 2008, 09:00
  2. import large number of images
    By sriluyarlagadda in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2008, 10:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.