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. How to show Empty signal notification from combobox or QlineEdit field ?
Qt 6.11 is out! See what's new in the release blog

How to show Empty signal notification from combobox or QlineEdit field ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 930 Views 2 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.
  • Pranit PatilP Offline
    Pranit PatilP Offline
    Pranit Patil
    wrote on last edited by
    #1

    How to show Empty signal notification from combobox or QlineEdit field ?

    in Qt how to implement following structure
    0_1535721730153_Screenshot_21.png

    How it will automatically detect the field is empty or not ?

    Thank You

    @Embedded Software Developer
    God has given you one face, and you make yourself another.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      When the this screen is launched you need to check the value of either of compobox using currentText function or QlineEdit function text(). There is no automatic way.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      5
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        You must program that yourself.
        You could use style sheet to show red border.
        It will not automatically detect anything.
        You should check the combos and field when user press ok.
        and then color them red if missing inout.

        You can also use
        http://doc.qt.io/qt-5/qlineedit.html#placeholderText-prop
        to show text to user before he starts entering data.

        1 Reply Last reply
        5
        • Pranit PatilP Offline
          Pranit PatilP Offline
          Pranit Patil
          wrote on last edited by
          #4

          Thanks to all.
          i will try all solutions which you explain above.

          @Embedded Software Developer
          God has given you one face, and you make yourself another.

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vinh
            wrote on last edited by
            #5

            Hi,
            you could share me this design?
            I try catch empty field same you, I change border color but size it change too, thank you.
            fd2fdd35-b470-4f71-a60e-18bf94093f85-image.png

            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