Please attach a complete archive with all the source files of your test project.
Please attach a complete archive with all the source files of your test project.
Here you are. If you see the code you can view the 'manually' added:
which works.Qt Code:
// This is 'manually' added. tabla=new A_tabla; tabla->setParent(ui->centralWidget); tabla->setGeometry(20,20,100,100);To copy to clipboard, switch view to plain text mode
Thanks
Geeezzz tonnot.... you're missing layouts in your ui...
Wysota, Why I need layouts ?
This is the reason because a Widget extending Qtreeview is not viewed using promote ?
And :
1.- I have tested the class in 'old' style (creating the instance, givin size, etc) and It is showed. ( an empty white QTreeView)
2.- If I extend the A_table to Qpushbutton.... promote works fine, I see an empty space at my form, but I see a button when run. (so, it is ok).
So, finally, I cannot extend a basic QTreeView using promote ?
Ok, it works.
And, as a newbie, Why? A_table is already a Qobject....
Thanks
Bookmarks