[Qt-creator] Using Qt-creator to add widgets to the ui that are not on the widget list

Philip Mason Phil.Mason at crystalvision.tv
Fri Mar 20 12:36:31 CET 2009


Hello all,

 

This is probably a pretty newbie question but I'm just getting started
using Qt-creator (after using C++ Builder for years).

 

Is there a recommended way of adding controls to the UI that aren't on
the ui widget list? For example if I have 2 widges (say text entry or
graphic view) that I want to separate with a splitter so the user can
decide how much of each is visible at any time.

 

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.

 

Is it likely that future release of Qt-creator will include more widgets
in the list or is the current list sufficient and I don't understand the
correct way to do things?

 

Thanks in advance

 

Phil

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090320/e47217e7/attachment.html 


More information about the Qt-creator-old mailing list