Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: Is there a QT widget similar to the Task Panel's used in many XP applications.

  1. #21
    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: Is there a QT widget similar to the Task Panel's used in many XP applications.

    I don't know if I understand the problem, but the solution I mentioned seems to work fine for me...

    QPalette::Base of the list view is set to light yellow and QPalette::Window of the parent widget is set to light green (just to distinguish the background).
    Attached Images Attached Images

  2. #22
    Join Date
    May 2006
    Posts
    20
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Is there a QT widget similar to the Task Panel's used in many XP applications.

    What did you compile this on? I'm using Linux and GCC. Could you the code of you example? Thanks.

  3. #23
    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: Is there a QT widget similar to the Task Panel's used in many XP applications.

    Linux + GCC There is no code, I mocked it in Designer. This is a QListView (or QListWidget, I don't remember) that has QPalette::Base colour component changed to light yellow inside a QWidget that has its QPalette::Window colour component changed to light green.

    An equivalent code is more/less:
    Qt Code:
    1. QWidget *wgt = new QWidget(...);
    2. QHBoxLayout *l = new QHBoxLayout(wgt);
    3. QListView *lv = new QListView;
    4. l->addWidget(lv);
    5. QPalette p = lv->palette();
    6. p.setColor(QPalette::Base, QColor(255,255,100));
    7. lv->setPalette(p);
    8. p = wgt->palette();
    9. p.setColor(QPalette::Window, QColor(100,255,100));
    10. wgt->setPalette(p);
    To copy to clipboard, switch view to plain text mode 

  4. #24
    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: Is there a QT widget similar to the Task Panel's used in many XP applications.

    Just a quick screenshot of what I implemented today
    Attached Images Attached Images

  5. #25
    Join Date
    May 2006
    Posts
    20
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Talking Re: Is there a QT widget similar to the Task Panel's used in many XP applications.

    Wysota,

    That works great. I added it to the QPUListView constructor. Thanks.

    The example you show in the last post, was the made with QT 4's QListView?

    Glenn

  6. #26
    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: Is there a QT widget similar to the Task Panel's used in many XP applications.

    Quote Originally Posted by gsQT4 View Post
    The example you show in the last post, was the made with QT 4's QListView?
    No, this is a completely custom widget derived from QScrollArea. You can add separate "tasks" to it and assign any widget you want as the "body" of the task. You can even fill the widget with tasks in Designer. Of course the whole thing is stylable, so you can make it look just like the WinXP original.
    Last edited by wysota; 20th March 2007 at 09:49. Reason: Added some content

  7. #27
    Join Date
    Jun 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Is there a QT widget similar to the Task Panel's used in many XP applications.

    gsQT4,

    do you have some working version of QpuListView in only Qt4 ?
    Or if you have with this some issues, maybe i can help you.

  8. #28
    Join Date
    May 2008
    Posts
    42
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4

    Default Re: Is there a QT widget similar to the Task Panel's used in many XP applications.

    Hai,
    I tried out the Pulistview. I created an application with one Listview. I implemented this QPUListView class in the project. But i got lot of errors.
    I added QT3 Support Library in the Project. I am using QT 4.3.4. So i am not able to modify this class as i am new to QT.

    Could you please help to solve this problem.

    Thanks and regards.
    V. Santhosh

Similar Threads

  1. Replies: 2
    Last Post: 19th April 2006, 19:11

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.