Can add a new toolbar for the DockWindowShell window?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Can add a new toolbar for the DockWindowShell window?

WestSun
Can add a new toolbar for the DockWindowShell window?
Reply | Threaded
Open this post in threaded view
|

Re: Can add a new toolbar for the DockWindowShell window?

tclarke
Administrator
When you set your menu location, put the first "path" component in []
and it will show up on a toolbar of that name (and create a new toolbar
if necessary). For example: [My Tools]/Tool 1   will end up on a "My
Tools" toolbar. If you want an icon instead of a sub-menu, you can call
DesktopServices::createWindow() with TOOLBAR as the WindowType then
dynamic_cast return return value to a Toolbar*

----------------------
Trevor R.H. Clarke
Software Engineer, Ball Aerospace
(937)320-7087

> -----Original Message-----
> From: WestSun [mailto:[hidden email]]
> Sent: Monday, May 20, 2013 3:31 AM
> To: [hidden email]
> Subject: [Opticks-devs] Can add a new toolbar for the DockWindowShell
> window?
>
> Can add a new toolbar for the DockWindowShell window?
>
>
>
> --
> View this message in context:
> https://urldefense.proofpoint.com/v1/url?u=http://opticks-
> devs.2021163.n4.nabble.com/Can-add-a-new-toolbar-for-the-
> DockWindowShell-window-
> tp4653051.html&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0L
> QPE3P8SnMqwUA%3D%3D%0A&m=oJ29sq6H7SkVf22swO9bXoFenzNfBZfq
> WqjX4H4%2BCM8%3D%0A&s=0dddc56431a09933e33885881c9206e64dea1d2
> 356be0a5eb6468bc0752d8f2f
> Sent from the opticks-devs mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------
------
> AlienVault Unified Security Management (USM) platform delivers
complete
> security visibility with the essential security capabilities. Easily
and
> efficiently configure, manage, and operate all of your security
controls
> from a single console and one unified framework. Download a free
trial.
>
https://urldefense.proofpoint.com/v1/url?u=http://p.sf.net/sfu/alienvaul
t_
> d2d&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P8Sn
> MqwUA%3D%3D%0A&m=oJ29sq6H7SkVf22swO9bXoFenzNfBZfqWqjX4H4%
> 2BCM8%3D%0A&s=f5e3fde19af0ab738458dfb2120d7c6744d29c63d3382ca0ec
> a26454312570b4
> _______________________________________________
> Opticks-devs mailing list
> [hidden email]
>
https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net
/li
> sts/listinfo/opticks-
> devs&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P8Sn
> MqwUA%3D%3D%0A&m=oJ29sq6H7SkVf22swO9bXoFenzNfBZfqWqjX4H4%
> 2BCM8%3D%0A&s=416b092531f1af75586688a7dc3ddca18d1e99481ded5520d
> c115700d395e050



This message and any enclosures are intended only for the addressee.  Please
notify the sender by email if you are not the intended recipient.  If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful.  Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs
Reply | Threaded
Open this post in threaded view
|

Re: Can add a new toolbar for the DockWindowShell window?

WestSun
Thanks for your reply,But I want add a new toolbar into DockWindow like Signature Window not the Main Window! Is the same way?
Reply | Threaded
Open this post in threaded view
|

Re: Can add a new toolbar for the DockWindowShellwindow?

tclarke
Administrator
You need to use Qt directly to do that..(see QToolBar)

----------------------
Trevor R.H. Clarke
Software Engineer, Ball Aerospace
(937)320-7087


> -----Original Message-----
> From: WestSun [mailto:[hidden email]]
> Sent: Monday, May 20, 2013 11:30 PM
> To: [hidden email]
> Subject: Re: [Opticks-devs] Can add a new toolbar for the
> DockWindowShellwindow?
>
> Thanks for your reply,But I want add a new toolbar into DockWindow
like

> Signature Window not the Main Window! Is the same way?
>
>
>
>
> --
> View this message in context:
> https://urldefense.proofpoint.com/v1/url?u=http://opticks-
> devs.2021163.n4.nabble.com/Can-add-a-new-toolbar-for-the-
> DockWindowShell-window-
> tp4653051p4653055.html&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=H
> o639Wn0LQPE3P8SnMqwUA%3D%3D%0A&m=TRzma28UhyPcF9he8yeFXTR7
> TbuG9Dvo4p9I1Gnnr%2BQ%3D%0A&s=b4d0b180476bb6c219293022fa599cf1
> c89f9c23020e629b68a77ff0c613f15b
> Sent from the opticks-devs mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------
------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt!
>
https://urldefense.proofpoint.com/v1/url?u=http://p.sf.net/sfu/newrelic_
d
> 2d_may&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P
> 8SnMqwUA%3D%3D%0A&m=TRzma28UhyPcF9he8yeFXTR7TbuG9Dvo4p9I1
> Gnnr%2BQ%3D%0A&s=068bdec3fff4094d1d9304917c4a5836b46b98b69e84f4
> 1db6871113cf49ba45
> _______________________________________________
> Opticks-devs mailing list
> [hidden email]
>
https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net
/li
> sts/listinfo/opticks-
> devs&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P8Sn
> MqwUA%3D%3D%0A&m=TRzma28UhyPcF9he8yeFXTR7TbuG9Dvo4p9I1Gnn
> r%2BQ%3D%0A&s=c5664b8038088109802aaa05852ee08631ec79c11260c4bcd5
> e3bf4b04df324a



This message and any enclosures are intended only for the addressee.  Please
notify the sender by email if you are not the intended recipient.  If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful.  Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs
Reply | Threaded
Open this post in threaded view
|

Re: Can add a new toolbar for the DockWindowShellwindow?

WestSun
I have try to use QToolBar, And I add the toolbar into the DockWindowShell like this:

          QToolBar* pToolbar=new QToolBar();
           //...add some buttons...
          QMainWindow* pMainWindow=dynamic_cast<QMainWindow*>(pMyDockWindow);
          pMainWindow->addToolBar(pToolbar);


But when I debuging,I found the pMainWindow is NULL!

So,How to do?
Reply | Threaded
Open this post in threaded view
|

Re: Can add a new toolbar for theDockWindowShellwindow?

Sulgrove, David
The widget that defines the contents of the dock window should be a
QMainWindow instead of the dock window itself.  Therefore, in your
override of DockWindowShell::createWidget() create an instance of a
custom QWidget that inherits QMainWindow.


-----Original Message-----
From: WestSun [mailto:[hidden email]]
Sent: Tuesday, May 21, 2013 10:43 AM
To: [hidden email]
Subject: Re: [Opticks-devs] Can add a new toolbar for
theDockWindowShellwindow?

I have try to use QToolBar, And I add the toolbar into the
DockWindowShell
like this:

/          QToolBar* pToolbar=new QToolBar();
           //...add some buttons...
          QMainWindow*
pMainWindow=dynamic_cast<QMainWindow*>(pMyDockWindow);
          pMainWindow->addToolBar(pToolbar);/

But when I debuging,I found the pMainWindow is NULL!

So,How to do?



--
View this message in context:
https://urldefense.proofpoint.com/v1/url?u=http://opticks-devs.2021163.n
4.nabble.com/Can-add-a-new-toolbar-for-the-DockWindowShell-window-tp4653
051p4653057.html&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=%2FOUdoTsleH7Z6N6IX
1hzoWIMZ9wf8e0uEWmAz8tV1os%3D%0A&m=3nHcRP9D1y0S96GwtlltBoPn5v2UHOjcFiE6l
jF2YRs%3D%0A&s=5e134b4a0b04ffb7a7200dfd1a2957eb2857b7f8904ba5fb3826aa578
17f808b
Sent from the opticks-devs mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring
service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
https://urldefense.proofpoint.com/v1/url?u=http://p.sf.net/sfu/newrelic_
d2d_may&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=%2FOUdoTsleH7Z6N6IX1hzoWIMZ9
wf8e0uEWmAz8tV1os%3D%0A&m=3nHcRP9D1y0S96GwtlltBoPn5v2UHOjcFiE6ljF2YRs%3D
%0A&s=10742a62b89f6ec1d5b84564c655ddcc832d8716eca14067fe444c712707fd7a
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net
/lists/listinfo/opticks-devs&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=%2FOUdo
TsleH7Z6N6IX1hzoWIMZ9wf8e0uEWmAz8tV1os%3D%0A&m=3nHcRP9D1y0S96GwtlltBoPn5
v2UHOjcFiE6ljF2YRs%3D%0A&s=c5ded9ce6c2a7d4633f6d276ad60fae83ea948fee4c18
a1e6d9d7863382b0108



This message and any enclosures are intended only for the addressee.  Please
notify the sender by email if you are not the intended recipient.  If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful.  Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs