I want to know method of "sub Classing"



  • Hi,

    I want to using "sub-classing".

    I use QTableView in my application.

    So i want to adjust Alignment in each cell.

    I'm searching this in google, So i find that it is possible to use "sub-classing"

    but I don't know about sub-classing.

    is it use another .cpp or .h file? or is it possible to my existing file just add some codes??

    if there are some detaile example, please show me.

    Thanks.



  • Sub classing means inheritance. Please read more about inheritance. You will have qtableView as parent class and you will make ur own class file(both .h and .cpp).


Log in to reply
 

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