Unsolved Qframe .... setframestyle
-
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 -
@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? -
@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 -
@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"?
-
@jsulm
when the user choose a habit through it's checkbox and click done .... i want a line to appear passing through the word -
Hi
I not sure how you have this "word" but ifs drawn as text you can use font to make it look crossed