[Qt-interest] Attach a QWidget to another QWidget

Efan... efanharris at gmail.com
Sat Apr 25 00:54:15 CEST 2009


If that is the case then you can use eventFilter  for this.
Efan

On Fri, Apr 24, 2009 at 3:08 PM, Yong Taro <yanicher at gmail.com> wrote:

> Hi list,
>
> can you give me some ideas for implementing this functionality:
>
> having a QToolBar floating somewhere, I want it to move at the same time
> when the QTextEditor gets moved.
>
> The hierarchy is like this:
>
> QMainWindow
>      QTabBar
>         QWidget
>             QTextEdit
>
> Now the trick is that there is this
> void moveEvent( QMoveEvent* event )
> which does not gets called when there is this king of hierarchy and
> I'm moving the QMainWindow.
>
>
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/f88281c8/attachment.html 


More information about the Qt-interest-old mailing list