[SOLVED] how to make custom widget display?



  • 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.