Results 1 to 13 of 13

Thread: QAbstractItemView questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QAbstractItemView questions

    Quote Originally Posted by maximAL View Post
    would it be feasible to use a view to represent some time-lines, each containing events?
    eg, several time lines, each containing a few events displayed as eg. boxes on the timeline. of course, with full drag and drop support, plus defining begin/end of events by direct manipulating these boxes with the mouse.
    Yes, of course.

    an underlying data model would be straight - forward: on the top-level the timelines, each with one level of children for the events constisting of a begin/end time.
    Seems ok.

    now, i can imagine just drawing some boxes for the events...but not using widgets would make the whole resizing thing much more complex.
    What would you use widgets for?

    or would a plain custom widget be the better choice?
    A plain widget? No. But using QGraphicsView is an option.

  2. #2
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8

    Default Re: QAbstractItemView questions

    Quote Originally Posted by wysota View Post
    What would you use widgets for?
    ...
    A plain widget? No. But using QGraphicsView is an option.
    well, after all it would be nice to be able to use widgets, since the look should be similar to a QTableView (with one column, but the rows should contain the items), what could be achieved with a few basic widgets.
    rendering everything myself seems like a daunting task - esp. since i've never done that in Qt

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

    Default Re: QAbstractItemView questions

    Consider using QScrollArea then. But if you'll want to use the model with it, you'll have to implement it all yourself. I don't know what exactly would you like to display, but if you are not sure you need widgets, consider not using them and going for the view with a custom delegate or no delegate at all (with a custom view).

  4. #4
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8

    Default Re: QAbstractItemView questions

    I don't know what exactly would you like to display
    what i want to achieve is a window maybe similar to the central or far right window in this screenshot from muse :

    http://www.kde-apps.org/CONTENT/content-pre1/9923-1.png

    unfortunaltly i'm working under windows atm, so i can't really try it out now.

Similar Threads

  1. QTreeView questions about view doubles and more
    By davisjamesf in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2007, 01:39
  2. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 08:41
  3. 2 Questions about layouts
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 26th February 2006, 14:54
  4. setContentsMargins in QAbstractItemView
    By Promethee in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2006, 15:40
  5. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 13:25

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
  •  
Qt is a trademark of The Qt Company.