Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CentralWidget as blank page
Forum Updated to NodeBB v4.3 + New Features

CentralWidget as blank page

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 283 Views
  • 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.
  • Nafab213N Offline
    Nafab213N Offline
    Nafab213
    wrote on last edited by
    #1

    Hello everyone
    I start with C ++. I'm currently writing a program and I'm finishing with the menu, the toolbar and the status bar but I want to put two buttons in the center of a blank page for my CentralWidget but I do not know how to get my blank page blank.
    I tried to use a Gridlayout with two central buttons for my CentralWidget but the IDE refuses to take it as a parameter.
    Please help me ...

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      Create a QWidget, set the grid layout on it and then make that one as the central widget

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

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