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. Qframe .... setframestyle

Qframe .... setframestyle

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 760 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.
  • R Offline
    R Offline
    Rahma
    wrote on last edited by Rahma
    #1

    so i have a check list added by user ..... when he check one of them and press a "done" push button i want to add a Hline to the one he checked it's check box but i can't find the right syntax
    void MainWindow::on_donehabit_clicked()
    {
    for(int i=0;i<=numh-1;i++){
    if(boxh[i].first.isChecked()){

        }
    }
    

    boxh is array of habits added by user that has two parts ... boxh[i].first refers to habitname.......boxh[i].second refers to habit id ....... numh is no of habits added by user .... for loops checks on them all till it reach the one that the user checked it's checkbox and pressed done button
    HLine is a line that passes through word ..... i want to add it to the habit once it is done

    jsulmJ 1 Reply Last reply
    0
    • R Rahma

      so i have a check list added by user ..... when he check one of them and press a "done" push button i want to add a Hline to the one he checked it's check box but i can't find the right syntax
      void MainWindow::on_donehabit_clicked()
      {
      for(int i=0;i<=numh-1;i++){
      if(boxh[i].first.isChecked()){

          }
      }
      

      boxh is array of habits added by user that has two parts ... boxh[i].first refers to habitname.......boxh[i].second refers to habit id ....... numh is no of habits added by user .... for loops checks on them all till it reach the one that the user checked it's checkbox and pressed done button
      HLine is a line that passes through word ..... i want to add it to the habit once it is done

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Rahma said in Qframe .... setframestyle:

      Hline

      what is that?
      What is boxh in your code?
      You should explain better what you want to do and what you tried.
      And how is the title of your post related to the description?

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

      R 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Rahma said in Qframe .... setframestyle:

        Hline

        what is that?
        What is boxh in your code?
        You should explain better what you want to do and what you tried.
        And how is the title of your post related to the description?

        R Offline
        R Offline
        Rahma
        wrote on last edited by Rahma
        #3

        @jsulm
        boxh is array of habits added by user that has two parts ... boxh[i].first refers to habitname.......boxh[i].second refers to habit id ....... numh is no of habits added by user .... for loops checks on them all till it reach the one that the user checked it's checkbox and pressed done button
        HLine is a line that passes through word ..... i want to add it to the habit once it is done

        jsulmJ 1 Reply Last reply
        0
        • R Rahma

          @jsulm
          boxh is array of habits added by user that has two parts ... boxh[i].first refers to habitname.......boxh[i].second refers to habit id ....... numh is no of habits added by user .... for loops checks on them all till it reach the one that the user checked it's checkbox and pressed done button
          HLine is a line that passes through word ..... i want to add it to the habit once it is done

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Rahma said in Qframe .... setframestyle:

          HLine is a line that passes through word ..... i want to add it to the habit once it is done

          What exactly is this line? I mean, what type is it? And in what way do you want to "add it to the habit once it is done"?

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

          R 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Rahma said in Qframe .... setframestyle:

            HLine is a line that passes through word ..... i want to add it to the habit once it is done

            What exactly is this line? I mean, what type is it? And in what way do you want to "add it to the habit once it is done"?

            R Offline
            R Offline
            Rahma
            wrote on last edited by
            #5

            @jsulm
            when the user choose a habit through it's checkbox and click done .... i want a line to appear passing through the word

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

              Hi
              I not sure how you have this "word" but ifs drawn as text you can use font to make it look crossed
              alt text

              1 Reply Last reply
              1

              • Login

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