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. Widgets promoting
Forum Updated to NodeBB v4.3 + New Features

Widgets promoting

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    dmitrij
    wrote on last edited by
    #1

    Hello.

    Could anybody tell me, how does the widget promotion affect the performance? Is it the same as I declare some class and after all use the inheritance from that widget(which one was mentioned in the line above)?

    For instance, I have a QTreeWidget object and the class Test. And I promote it(tree widget) to the class Test. So, will be it the same, as I simply make QTreeWidget the base class of the class Test?

    Thank you beforehand for answers.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Your Test class will be used in the code. It has no relation to QTreeWidget in the code, the base widget is used only as a placeholder in designer.

      Try to go for some widget close to the one you implement yourself -- not only wrt. looks, but also with size hints, etc. -- to get the best possible preview results.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmitrij
        wrote on last edited by
        #3

        Thank you for you answer.

        So, as I understood, I'd better re-implement the widget and put in all properties, what I want, than I'd promote it. Am I right?

        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