Results 1 to 5 of 5

Thread: help! how to code this gui with qt4?

  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question help! how to code this gui with qt4?

    i am a beginner with qt4

    the following gui is what i want to code

    but i don't know which class to use

    so is there anybody can tell me how to code this gui?

    the left window are some icon,

    and the right window will show some pictures when i click the icon

    how to do this ?

    i will so appreciated if anyone can help me.


  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help! how to code this gui with qt4?

    You will mostly need QTreeWidgetand delegates (QItemDelegate).

    Have a look at these classes, and also study the examples in Qt Demos related to these classes. Rest when you get an idea, you can again post how to proceed further..

  3. The following user says thank you to aamer4yu for this useful post:

    khong_fly2008 (31st March 2009)

  4. #3
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: help! how to code this gui with qt4?

    Quote Originally Posted by aamer4yu View Post
    You will mostly need QTreeWidgetand delegates (QItemDelegate).

    Have a look at these classes, and also study the examples in Qt Demos related to these classes. Rest when you get an idea, you can again post how to proceed further..

    thanks ! aamer4yu,i am so appreciate.

    could you please give me some similar examples ?

    by the way, in the left window,the icon means a dir.there are many pictures in each icon. so when i click the icon,the pictures in the dir should be show in the right window.this is my wanted.

  5. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: help! how to code this gui with qt4?

    create QTreeWidget and papulate this tree with QTreeWidgetItem.
    using QTreeWidgetItem you can set icons, text aligment etc.
    then you need to connect QTreeWidget::itemClicked or QTreeWidget::itemActivated with slot in wich you will set needed picture.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  6. #5
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: help! how to code this gui with qt4?

    Quote Originally Posted by spirit View Post
    create QTreeWidget and papulate this tree with QTreeWidgetItem.
    using QTreeWidgetItem you can set icons, text aligment etc.
    then you need to connect QTreeWidget::itemClicked or QTreeWidget::itemActivated with slot in wich you will set needed picture.


    thanks

    is there any similar code about this?

Similar Threads

  1. How to put custom handle image in QSlider using code?
    By montylee in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 19:38
  2. copyright and gpl
    By janus in forum General Discussion
    Replies: 8
    Last Post: 21st October 2008, 01:13
  3. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

Tags for this Thread

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.