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. QWidget : show widget when ctrl + F is pressed
Forum Updated to NodeBB v4.3 + New Features

QWidget : show widget when ctrl + F is pressed

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.8k 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.
  • H Offline
    H Offline
    haney
    wrote on last edited by
    #1

    Hi,

    I have a QWidget which has a textedit and another findReplaceWidget which are added in a QVBoxLayout. Initially I need to hide findReplaceWidget and but when user presses Ctrl+F that is find some text , then only I need to display this findReplaceWidget.

    Plz suggest some ideas..

    Thanks..

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Create a [[doc:QAction]], and define a proper [[doc:QKeySequence]] for it. Then, connect the signal of the action to a slot in your application that shows the findReplaceWidget.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        haney
        wrote on last edited by
        #3

        I used QAction and it worked.. Thanks !!

        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