Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved] Designer in Qt Creator - Getting rid of the centralWidget?
Forum Updated to NodeBB v4.3 + New Features

[solved] Designer in Qt Creator - Getting rid of the centralWidget?

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 4 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kemra102
    wrote on last edited by
    #1

    I am currently back trying my hand at coding a Qt Gui App but am having problems with this newer version of Qt Creator I don't remember having before.

    In previous version when choosing a Qt GUI Application (Widget based) I would choose to have a blank MainWindow when creating the project. This was great as in the designer I could then use a QVBoxLayout which would fill the main window in order to layout the widgets I wanted (assuming of course that my memory is sound).

    Now I am confronted with a handful of widgets selected for me which doesn't let me use layouts like I could before. I can delete all the widgets except for the centralWidget. Is there any way to get rid of this widget or revert to the previous behaviour?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      This sounds like you started your design with a QMainWindow this time while you used a QWidget as a base before.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kemra102
        wrote on last edited by
        #3

        Actually after some research I may have been thinking of MonoDevelop designer so my bad.

        What I basically want to achieve is add a QDeclarativeView to the app and have it fill the available space (i.e. space that isn't given over to menu & status bars) - any advice on that?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Just set that QDeclarativeView as your central widget? I would do that in code, I think.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            It works very well with designer too. Just drop the QDV to the central area and add a layout and you're done.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kemra102
              wrote on last edited by
              #6

              Andre & Volker thank you - did it in Designer just how I needed it!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved