Results 1 to 3 of 3

Thread: Display multiple Images in a widget

  1. #1
    Join Date
    Jan 2007
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Display multiple Images in a widget

    Hi

    I want to display some images ( i am using QLabel to display image) in a Widget, something like pictures application`s main view. How to arrange/position different QLabel in same widget...all label are starting from top left...
    How to proceed further..

    thanks in advance...

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Display multiple Images in a widget

    Take a look at Qt's Layout Classes.
    J-P Nurmi

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Display multiple Images in a widget

    Quote Originally Posted by jeetu_happy View Post
    Hi

    I want to display some images ( i am using QLabel to display image) in a Widget, something like pictures application`s main view. How to arrange/position different QLabel in same widget...all label are starting from top left...
    How to proceed further..

    thanks in advance...

    http://doc.trolltech.com/4.2/layouts...ayout-cpp.html

    on a QScrollArea ....

    Qt Code:
    1. void Image_Base::Load_Connector()
    2. {
    3. scroll = new QScrollArea(this);
    4. scroll->setBackgroundRole(QPalette::Dark);
    5. scroll->setMinimumWidth(500);
    6. wrapper = new QWidget(this);
    7. flow = new FlowLayout(wrapper);
    8. comio = new Comandi();
    9. comio->SetName(nomefilmopersona);
    10. connect(comio , SIGNAL(NewIImage(QString,QString)), this, SLOT(AppendImage(QString,QString) ) );
    11. connect(comio , SIGNAL(SaveFakes()), this, SLOT(ReSaveOnDb() ) );
    12. flow ->addWidget(comio);
    13. wrapper->setLayout(flow);
    14. scroll->setWidget(wrapper);
    15. connect(curl , SIGNAL(OneFilePutEnd(bool) ), this, SLOT(SenderOnePutBack(bool) ) );
    16. connect(curl , SIGNAL(ErrorCurl(QString) ), this, SLOT(CurlMistake(QString) ) );
    17. connect(curl, SIGNAL(NextGrabList(int)), this, SLOT(ImageLoadPosition(int)));
    18. ////////////connect(curl, SIGNAL(ErrorCurl(QString)), this, SLOT(SegnalaErrore(QString)));
    19. }
    To copy to clipboard, switch view to plain text mode 


    or search this forum the link of Munich dev day 2006 and on Cute page dev day download all 3-4 source code ... inside you find a dinamic image display wo rotate image onMousover

Similar Threads

  1. How to display images in QTextBrowser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2007, 09:58
  2. Widget to display an HTML page ?
    By probine in forum Qt Tools
    Replies: 3
    Last Post: 11th October 2006, 19:55
  3. QWidget display on 2 stack widget page
    By spawnwj in forum Qt Programming
    Replies: 3
    Last Post: 4th September 2006, 13:07
  4. Replies: 5
    Last Post: 16th May 2006, 21:38
  5. Replies: 3
    Last Post: 12th April 2006, 09:20

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.