Results 1 to 6 of 6

Thread: What is a Qframe? can I use it as a layout/container?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What is a Qframe? can I use it as a layout/container?

    thanks! makes sense.

    Diving deeper into Qframe, is there a way to give it mouse clicked events like a push button?
    i used the Qframe to make thumbnails, but now i need click and context menu actions. :?

    thanks

  2. #2
    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: What is a Qframe? can I use it as a layout/container?

    Quote Originally Posted by Nfrancisj View Post
    Diving deeper into Qframe, is there a way to give it mouse clicked events like a push button?
    Yes, you just need to overwrite the mouse event handler functions that you need, e.g. QWidget::mousePressEvent().

    Quote Originally Posted by Nfrancisj View Post
    i used the Qframe to make thumbnails, but now i need click and context menu actions. :?
    For context menu there are several options.
    The easiest way is to add actions to the widget, see QWidget::addAction().

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 16th December 2015, 11:55
  2. Apply Layout to custom widget plugin container
    By Alex87 in forum Qt Programming
    Replies: 7
    Last Post: 28th July 2014, 13:57
  3. Control spacing of a QFrame layout using a Stylesheet
    By gmat4321 in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2012, 19:18
  4. How to fill a QFrame space in QSplitter layout
    By henryjoye in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2010, 05:18
  5. Quick ? about qSort(Container & container)
    By JimDaniel in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2007, 11:20

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.