Results 1 to 4 of 4

Thread: simpletreemoddel example

  1. #1
    Join Date
    Jan 2006
    Location
    Grenoble, France
    Posts
    165
    Thanks
    106
    Qt products
    Qt4
    Platforms
    Windows

    Default simpletreemoddel example

    The output of this example given with the distribution would do a perfect widget for my application.

    How can I make it a widget ?
    edit; Should I use a QTreeWidget ? getting harder

    Or should there be a much clever approch ?

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: simpletreemoddel example

    Look in example src
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Location
    Grenoble, France
    Posts
    165
    Thanks
    106
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: simpletreemoddel example

    Quote Originally Posted by zlatko
    Look in example src
    I look in the source code of the example and it is far from being understood how it does what it does so well. Forinstance once I can integrate it to a layout I want to detect the signal right click on an item and be able to start a special edit.

    I am unable from the source to understand how I can make it a widget and then used signals on it.

  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: simpletreemoddel example

    Then you should probably read a little more about model-view approach used by Qt. The topic is so big, our answers to your questions here without any knowledge about mechanisms used in this example won't tell you much and you certainly won't learn anything from it.

    You should now read about Interview, try to analyse example code, try to implement something on your own and then ask detailed questions about issues which seem unclear to you and then we'll gladly answer them.

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

    incapacitant (27th March 2006)

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.