View Single Post
Old 12-14-2016, 06:59 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,673
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by kovidgoyal View Post
save/restore does cause the order + current tab to be restored.
i would think that should be the case, but one dock widget always seems to be the "default" after restoreState is called. -- no matter which tabbed QDockWidget was current when saveState was called. Only the order (and the tabbed state itself, of course) seems to be being saved and/or restored. I'll keep looking for Sigil Code that might be in play after restoreState (or before saveState), but I sure haven't found any yet. Keep in mind that any tabbed dockwidget configurations are made by the user. Sigil doesn't tabify any dockwidgets programmatically.

Quote:
Originally Posted by kovidgoyal View Post
As for getting them in a particular order, IIRC the way to do it is to add them to the panel in reverse order, that is, the last added tab will be the first one in the tab bar.
Qt5.6+ allows the user to drag the tabs into desired order with the mouse, as well.

Last edited by DiapDealer; 12-14-2016 at 07:02 AM.
DiapDealer is offline   Reply With Quote