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

setWhatsThis on QComboBox

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.9k 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.
  • A Offline
    A Offline
    Amrita_S
    wrote on last edited by
    #1

    Hi,
    I was trying to use setWhatsThis function with QComboBox,its not working. But it is working with QLineEdit and other QWidgets. I have to implement it in Qt4.1.4 .

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Amrita_S
      what are you trying to do ?Show me what you have tried?

      --Alles ist gut.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Amrita_S
        wrote on last edited by
        #3

        QComboBox *ddEOFMode;
        ddEOFMode = new QComboBox(groupBox2_2);
        ddEOFMode->addItem(QApplication::translate("fConfig", "added item1", 0, QApplication::UnicodeUTF8));
        ddEOFMode->addItem(QApplication::translate("fConfig", "added item 2", 0, QApplication::UnicodeUTF8));
        ddEOFMode->addItem(QApplication::translate("fConfig", "added item3", 0, QApplication::UnicodeUTF8));
        ddEOFMode->setWhatsThis(QApplication::translate("fConfig", "whatsthis for ddeof", 0, QApplication::UnicodeUTF8));

        1 Reply Last reply
        0
        • RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          @Amrita_S
          Why not http://doc.qt.io/qt-4.8/qwidget.html#toolTip-prop ?

          --Alles ist gut.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Amrita_S
            wrote on last edited by Amrita_S
            #5

            I mentioned in my question that Qt4.1 not newer versions
            and issue is that its not working specially for combo box

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              Do you want to set the what's this for the whole combobox or of an item of the combo list?

              in the second case you can use http://doc.qt.io/qt-4.8/qcombobox.html#setItemData with Qt::WhatsThisRole as role

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              3
              • A Offline
                A Offline
                Amrita_S
                wrote on last edited by
                #7

                @VRonin Qt::ToolTipRole is working but WhatsThisRole is not working and My preference is what's this for whole combo box

                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