[Qt-interest] QManWindow::tabifyDockWidget()

NARCISO, Rui RUI.NARCISO at airbus.com
Wed Apr 29 15:03:55 CEST 2009


why not just do 
mw->tabifyDockWidget (d2, d1);

instead of
mw->tabifyDockWidget (d1, d2);

??

-----Message d'origine-----
De : qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]De la part de Santhosh Y
Envoyé : mercredi 29 avril 2009 14:31
À : qt-interest at trolltech.com
Objet : [Qt-interest] QManWindow::tabifyDockWidget()


Hi,

I have a issue with QMainWindow ::tabifyDockWidget (QDockWidget*, 
QDockWidget*) function.

/// Dock Widgets & MainWindow
QDockWidget* d1 = new QDockWidget;
QDockWidget* d2 = new QDockWidget;
QMainWindow* mw = new  QMainWindow;

/// Adding dockwidget to mainwindow in a dock are and with it tabifying 
one more dock.
mw->addDockWidget ( Qt::LeftDockWidgetArea,  d1) ;
mw->tabifyDockWidget (d1, d2);

In the above scenario by default, the focussed tab is the first one; 
i.e. d1.

I would like to change the focus to d2 from d1.

Is there any way to solve the above problem. Please reply me ASAP.

-- 
----------------------------------------------------
Y Santhosh Kumar
Senior Software Engineer
SoftJin Technologies Private Limited
Unit No. 102, Mobius Tower,
I Floor, SJR I - Park,
EPIP, White Field,
Bangalore - 560066, India
U : www.softjin.com
E : santhosh at softjin.com
T : +91-80-41779999
M : +91-9740535265
----------------------------------------------------



Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________


_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.





More information about the Qt-interest-old mailing list