Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. I want to know method of "sub Classing"
Qt 6.11 is out! See what's new in the release blog

I want to know method of "sub Classing"

Scheduled Pinned Locked Moved Unsolved C++ Gurus
2 Posts 2 Posters 1.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      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