Results 1 to 5 of 5

Thread: Need your help... loading image on my widgetstack page..

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Need your help... loading image on my widgetstack page..







    Hello~
    I'm having some problem with image loading ...

    At the first screen i assigned some position that calls one of wigets from wigetStack.

    I loaded the images that are needded for the page at the init func.

    When i click the position, the image page should be shown but, blank page is shown as

    you see on the second picture. After clicking same position twice i could get what i want..

    but, i don't understand why this happeded...?.

    Actually, the label is shown at the second pic, but image is not...

    Any help will be appreciated..


    plus.. I have to load a lot of images but, since it's supposed to be run on the ARM board..

    i'm worrying about memory/performance problem... is there any good way to load image

    efficiently?..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Need your help... loading image on my widgetstack page..

    Maybe you could load the image only when you need it? As for the error itself, please show us your code which you use to set the image on the label.

  3. #3
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Need your help... loading image on my widgetstack page..

    Solved....thx..
    Last edited by megabeat; 30th January 2007 at 13:57.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Need your help... loading image on my widgetstack page..

    Could you please leave only the essential code? From what I see you're not painting on the label but directly on a widget. What for?

  5. The following user says thank you to wysota for this useful post:

    megabeat (30th January 2007)

  6. #5
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Need your help... loading image on my widgetstack page..

    Thanks a lot Wysota....
    I was swimming in my own logical error...
    You gave me the clue..
    Really appreciate you...

Similar Threads

  1. how i can add image in my toolbar
    By jyoti in forum Qt Tools
    Replies: 7
    Last Post: 19th December 2006, 14:39
  2. Loading a custom image into a QPixmap
    By KShots in forum Qt Programming
    Replies: 12
    Last Post: 5th August 2006, 00:16
  3. Fast image drawing/scaling in Qt 3.3
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 10:45
  4. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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.