Results 1 to 4 of 4

Thread: Drag & Drop QTreeWidgetItem with editors

  1. #1
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    50
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Drag & Drop QTreeWidgetItem with editors

    Hi everyone,
    I had a trouble after moving my program to Qt 4.2.2. It happen when d&d is going. I have a subclass of QTreeWidget. Each item has a few editors. When d&d a new item is created, editors are created too, but previous editors remain on a former place (see attachments for an info if I'm unclear ). This became when I've come to 4.2.2. I did use 4.1.3 before and did not meet anything similar. Could anyone help me?
    Attached Images Attached Images

  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: Drag & Drop QTreeWidgetItem with editors

    You are moving an item, not a complete row thus the rest of the items in the row remain in place.

  3. #3
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    50
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Drag & Drop QTreeWidgetItem with editors

    Quote Originally Posted by wysota View Post
    You are moving an item, not a complete row thus the rest of the items in the row remain in place.
    Well, do not find me a fool, but I was sure always that the a class of the item is an essence of the term of a row and I always manipulated the item as the row. I was wrong before? I tried to close editors, I tried to free widgets of editors, I tried something else but all is without a luck. Please hint to me which method I should use for a success.

  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: Drag & Drop QTreeWidgetItem with editors

    Item is something which occupies a particular row and particular column of the view. How exactly do you open the editors? Could you show a snippet of code that does that?

Similar Threads

  1. Drag and Drop
    By allensr in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2006, 20:50
  2. Replies: 7
    Last Post: 8th September 2006, 16:19
  3. Drag and drop outside the application
    By jpn in forum Newbie
    Replies: 7
    Last Post: 27th August 2006, 15:37
  4. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16:41
  5. Drag 'n Drop problem
    By kiker99 in forum Qt Programming
    Replies: 4
    Last Post: 16th January 2006, 16:35

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.