Results 1 to 5 of 5

Thread: Where can I get a widget like this one in Qt?

  1. #1
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Where can I get a widget like this one in Qt?

    Where can I get a widget like this one in Qt?pg20.png. I want to create an exact widget as the one in the picture but I can't find anything similar to it in Qt.

    thanking you in advance.

  2. #2
    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: Where can I get a widget like this one in Qt?

    In general this can be implemented with a QListView and a custom delegate (10 minutes of work).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Where can I get a widget like this one in Qt?

    Quote Originally Posted by wysota View Post
    In general this can be implemented with a QListView and a custom delegate (10 minutes of work).
    I thought of doing it that way but how do I get the QListView to scroll horizontally exactly like in the pic (I mean without it laying a complete scrollbar over the view or below.)

  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: Where can I get a widget like this one in Qt?

    Hide the scrollbars and use custom buttons for scrolling.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    ayanda83 (25th April 2015)

  6. #5
    Join Date
    Dec 2011
    Posts
    60
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where can I get a widget like this one in Qt?

    Or, use a QTableView. One row, no headers. And add two buttons on each end. Horizontal scrolling is automatic.

Similar Threads

  1. Replies: 8
    Last Post: 2nd February 2012, 19:52
  2. Replies: 2
    Last Post: 23rd January 2012, 17:06
  3. Replies: 0
    Last Post: 3rd August 2011, 12:07
  4. Replies: 1
    Last Post: 23rd June 2011, 23:09
  5. Replies: 7
    Last Post: 14th January 2010, 08:47

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.