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 handle exception for combobox selection?
Forum Updated to NodeBB v4.3 + New Features

How to handle exception for combobox selection?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 332 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.
  • N Offline
    N Offline
    n-2204
    wrote on last edited by
    #1

    Hi,
    I have added combobox in my table(Qtableview) in column 2 &3
    in combobox values are a,b,c,d,e
    case1. is user can select combo1->a combo2->b if user select other than this then it should not crash.
    this is valid scenario how should i add exception so if user select other than this ordr it should not crash ?
    1. combo1->a combo2->b
    2. combo1->a combo2->c
    3. combo1->c combo2->d
    4. combo1->d combo2->e

    Please suggest !!

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

      Run a debugger and crash it. it will show you what went wrong

      "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
      1
      • N Offline
        N Offline
        n-2204
        wrote on last edited by
        #3

        I need to prevent based on combobox selection i'm doing some calculation ..
        so i want user to select the values is such a way.. what to do in this case?
        if user select other values as i mentioned how user should select.

        JonBJ 1 Reply Last reply
        0
        • N n-2204

          I need to prevent based on combobox selection i'm doing some calculation ..
          so i want user to select the values is such a way.. what to do in this case?
          if user select other values as i mentioned how user should select.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @n-2204
          Are you still asking about crashing or something else, in which case what? No, there should be no exceptions raised in any case.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            n-2204
            wrote on last edited by
            #5

            ok. Thankyou

            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