Results 1 to 7 of 7

Thread: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

  1. #1
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    hi everybody,
    I am doing a simple project.where i have added a Tab widget to a form :it consist only 1 tab and that tab has 4 video players!! I have added 4 frames and have changed the frame background color to yellow,further i have added those 4 video players into 4 frames (and proper layouts are added and so that video player fits into frame when the frame is resized) ....i want to know the mouse click events--- When a particular frame or video player is clicked with a mouse the frame color should turn blue and i must be able to full screen that particular video-player using double-click mouse event also again when double clicked the video player should appear normal,,it should retain the blue color until 1 more click is done on that video player..if 1 more click is done on the same frame -the color should turn yellow 1s again,can anybody help me!!!! its urgent

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    Are you looking for help doing it or someone who will do it for you?

  3. #3
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    No sir i will do it myself. the positions where mouse click events ( Qpoint ) happens are known to me but which video player is clicked ;i want to know how to find it out.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    I don't see any ambiguity, the video player widget that receives the mouseDoubleClickEvent would be a fair bet.

  5. #5
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    Everything depends on from where you get your mouse position.
    If it's a parent widget (tab) then you can use player->geometry().contains( click_pos ).
    You could reimplement mouseDoubleClickEvent() and emit a signal there which would identify your player.
    If it's like Chris said then you have no problem.

    You could post some code to show your problem. I suspect that your design approach may not be that good.

  6. #6
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    Sir i am very new to Qt. I am trying to do a project which will display video from analog cameras.. No one is aware of Qt in my village; So what i should use to display video (streaming raw frames) from cameras;is it label or phonon video player?

  7. #7
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: Tabwidget:it consist of only 1 tab and that tab has 4 video players!!! Help

    I've never used phonon but I'm guessing it's the way to go rather than display video stream in label.

    Besides, you're not restricted to only your village
    Ask clear questions and you'll get clear answers

Similar Threads

  1. vlc two players
    By IGreench in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2011, 14:00
  2. how to set duration of a video in a video player in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2010, 11:51
  3. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 07:15
  4. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 09:45

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.