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

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
sizehintsize
4 Posts 2 Posters 618 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 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 :)

    jsulmJ 1 Reply Last reply
    0
    • F firen

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      2
      • jsulmJ jsulm

        @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 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?

        jsulmJ 1 Reply Last reply
        0
        • F firen

          @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?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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

          • Login

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