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 remove textarea from checkbox

How to remove textarea from checkbox

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 195 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    029433ee-34af-4903-b5a6-a4723cc65374-image.png

    Can you tell me how to remove the textarea of the checkbox?

    ad096375-6fb6-4e26-a433-d21b383e0c1f-image.png

    As shown in the following figure, I made the checkbox visible(false), but it seems to hold the size of the text area.

    99919f48-68ce-4022-98f9-12f34c508b07-image.png
    If I make the frame itself invisible, it works the way I want it to, but is there another way?
    Because it is giving an animation effect.

    auto anim = new QPropertyAnimation(this->ui.frame, "minimumWidth", this);
    	anim->setDuration(500);
    	anim->setStartValue(bShow ? 0 : m_nCheckArea + nOffset);
    	anim->setEndValue(bShow ? m_nCheckArea + nOffset : 0);
    	anim->setDirection(true ? QAbstractAnimation::Forward : QAbstractAnimation::Backward);
    	anim->setEasingCurve(true ? QEasingCurve::OutCubic : QEasingCurve::InCubic);
    	anim->start(QAbstractAnimation::DeleteWhenStopped);
    }
    
    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