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. What is "hint" and for what is it good for?
QtWS25 Last Chance

What is "hint" and for what is it good for?

Scheduled Pinned Locked Moved Unsolved General and Desktop
sizehintsize
4 Posts 2 Posters 572 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.
  • F Offline
    F Offline
    firen
    wrote on 10 Aug 2021, 12:35 last edited by
    #1

    Hi,

    I have a general question.

    There are several properties and methods with the keyword "hint" (for example a sizehint).

    Could someone explaine what the typical usage of hint is and for what it is good for?

    Thank you :)

    J 1 Reply Last reply 10 Aug 2021, 12:39
    0
    • F firen
      10 Aug 2021, 12:35

      Hi,

      I have a general question.

      There are several properties and methods with the keyword "hint" (for example a sizehint).

      Could someone explaine what the typical usage of hint is and for what it is good for?

      Thank you :)

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 Aug 2021, 12:39 last edited by
      #2

      @firen Hint is a "recomendation", like here for example: https://doc.qt.io/qt-5/qwidget.html#sizeHint-prop

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply 10 Aug 2021, 12:49
      2
      • J jsulm
        10 Aug 2021, 12:39

        @firen Hint is a "recomendation", like here for example: https://doc.qt.io/qt-5/qwidget.html#sizeHint-prop

        F Offline
        F Offline
        firen
        wrote on 10 Aug 2021, 12:49 last edited by
        #3

        @jsulm is this the internal used size (or whatevener property) that is used if I dont override it with a setter or something? So is a hint something which comes from the system or shoud/can I set a hint?

        J 1 Reply Last reply 10 Aug 2021, 12:55
        0
        • F firen
          10 Aug 2021, 12:49

          @jsulm is this the internal used size (or whatevener property) that is used if I dont override it with a setter or something? So is a hint something which comes from the system or shoud/can I set a hint?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 10 Aug 2021, 12:55 last edited by
          #4

          @firen Read "Size Hints and Size Policies" in https://doc.qt.io/qt-5/qwidget.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          3/4

          10 Aug 2021, 12:49

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved