Results 1 to 3 of 3

Thread: Graphic view and ProxyWidget ... signal problem?

  1. #1

    Default Graphic view and ProxyWidget ... signal problem?

    Hi everyone.
    I am working on a UI which needs a lot of freedom in the layout. The way I decided to do so is basically to use a grapich view and then control the grapich view items positions manually with
    a layout I will write. If needed I can go in more detail in what I want to achieve.
    Now every Item is basically a sub UI , so I use a ProxyWidget to feed a widget I want in the item.
    It works fine but I get several problem.

    ui.jpg

    The drag doesnt work (of course the item is set as draggable) and I cannot interact with any of the
    inner widgets of the item, like the line edit.

    I might guess this is a signal related problem of the grapich view consuming the events or viceversa?
    Anyone got an idea about that?
    Cheers
    M.

    PS I can provide snipped of code if needed even tho for now is just a really rough test.
    Last edited by giordi; 4th September 2014 at 14:42.

  2. #2

    Default Re: Graphic view and ProxyWidget ... signal problem?

    anyone got an idea? cheers

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Graphic view and ProxyWidget ... signal problem?

    Due to its duality there can always be weird things happening when using the proxy widget item.

    But your use case sounds like it should work.
    Have you tried having the proxy as a child of a different item that has the drag enabled?

    Do you need any of the other features of graphics view such as scaling or rotating?
    Otherwise you might be better of to just use freely positioned widgets instead.

    Cheers,
    _

Similar Threads

  1. Draw Bar chart in Graphic view
    By vinithr in forum Newbie
    Replies: 8
    Last Post: 7th November 2013, 04:40
  2. Graphic view for scatter plot
    By hamid ghous in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2009, 15:27
  3. File icon to graphic view
    By been_1990 in forum Qt Programming
    Replies: 10
    Last Post: 1st June 2009, 15:53
  4. Replies: 1
    Last Post: 27th November 2008, 10:49
  5. How to restrict graphic items in view
    By aamer4yu in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2006, 07:46

Tags for this Thread

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.