Results 1 to 4 of 4

Thread: Help with opening many pictures

  1. #1
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Help with opening many pictures

    I have such code (Qt):
    Window::Window(QWidget *parent, const char *name)
    : QScrollView(parent, name)
    {
    pwgt=new QWidget(this);
    this->addChild(pwgt);
    }

    void Window:penImage()
    {
    QString str=QFileDialog::getOpenFileName("","*.bmp");
    QPixmap pix(str);
    pwgt->resize(pix.width(),pix.height());
    pwgt->setBackgroundPixmap(pix);
    }

    it opens some picture. I want to open many pictures in one Window so as they open near each other and I could see them all. And this pictures must be in some order like table or in one line.
    May be I must use QHbox? (I read doc, but I dont know how to do it )

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help with opening many pictures

    You can always put them in a listwidget.

  3. #3
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Help with opening many pictures

    Qt 3. I dont see such class as QListWidget.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help with opening many pictures

    Quote Originally Posted by philipp1 View Post
    Qt 3. I dont see such class as QListWidget.
    Try QListView then.

Similar Threads

  1. How to rename a file after opening ?
    By npc in forum Newbie
    Replies: 2
    Last Post: 1st June 2006, 13:36
  2. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 09:33
  3. Opening the default mail client
    By munna in forum Newbie
    Replies: 5
    Last Post: 3rd April 2006, 13:58
  4. Replies: 9
    Last Post: 31st March 2006, 13:07
  5. QTextBrowser, html & pictures
    By jey in forum Qt Programming
    Replies: 3
    Last Post: 20th March 2006, 07:43

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.