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. [SOLVED] how to make custom widget display?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] how to make custom widget display?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 497 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.
  • R Offline
    R Offline
    rafael
    wrote on last edited by rafael
    #1

    i created a widget in designer named it mainwindow.ui
    added some labels and buttons saved it.

    i created a class called mainwindow and inherited from ui::mainwindow

    i created a project called test in the test.ui i created a widget promoted it with a class name of mainwindow and it uses the header file mainwindow.h

    when i run the application i just get a blank frame.
    what am i missing.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rafael
      wrote on last edited by
      #2

      i forgot to add ui->setup(this) to the mainwindow class

      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