Results 1 to 5 of 5

Thread: Add custom QTreeView in VS .NET

  1. #1
    Join Date
    Sep 2006
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Add custom QTreeView in VS .NET

    I wrote a custom QTreeView and now i need to add it to my design.
    The problem is I use VS .NET + Qt integration plugin.

    So how to add custom items using VS .NET and Qt?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Add custom QTreeView in VS .NET

    Do you mean that you want to use your custom QTreeView in a designed form? If so, put an ordinary QTreeView on the form, open context menu over it and choose "Promote to Custom Widget".
    J-P Nurmi

  3. #3
    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: Add custom QTreeView in VS .NET

    Or create a widget plugin out of your widget, but that's more compilcated than jpn's solution.

  4. #4
    Join Date
    Sep 2006
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Add custom QTreeView in VS .NET

    Thanks. "Promote to Custom Widget" is the right way.

  5. #5
    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: Add custom QTreeView in VS .NET

    They are both "the right ways". Promoting a widget is just a simpler one (but also doesn't allow you to manipulate distinct features of your custom widget from within Designer).

Similar Threads

  1. QTreeView repaint
    By graeme in forum Qt Programming
    Replies: 17
    Last Post: 13th March 2012, 13:27
  2. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  3. Qt and .NET
    By Brandybuck in forum Qt Programming
    Replies: 6
    Last Post: 6th July 2006, 01:01
  4. paint QTreeView item !!
    By mcenatie in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2006, 14:24
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.