[Qt-creator] Using Qt-creator to add widgets to the ui that arenot on the widget list
Philip Mason
Phil.Mason at crystalvision.tv
Fri Mar 20 13:38:06 CET 2009
2009/3/20 Philip Mason <Phil.Mason at crystalvision.tv>
QSplitter is perfect for this but I can't find it in the widget list. I could add it to the setupUI finction in ui_project_name.h file but I suspect that it will get overwritten the next time I amend the GUI. I could add it to the project_name.cpp file but for the project I have in mind that would mean pretty much abandoning the UI designer (because the top level widget in my app would be a QSplitter) which seems a pity.
Hello Philip,
For QSplitter you can use splittered layout with this items inserted there.
Denis Kormalev (Black Tass).
Thanks Denis,
Following your suggestion I worked out that what you had to do was select more than one widget and the splitter buttons become active. I have a follow up question:
Is there a way of breaking only the current level of layout? I have several nested splitters and if I decide I want to add an extra level to one of the inner ones then, if I click "Break layout", it breaks all the layouts and I have to stitch the whole thing back together.
Thanks for the prompt reply to the previous message.
Phil
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Qt-creator-old
mailing list