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. Popup new window on top of modal

Popup new window on top of modal

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 395 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.
  • M Offline
    M Offline
    masa4
    wrote on last edited by
    #1

    In my program im using integrated keyboard that i developed. When lineedit fields focused it shows up. But one of my window opens as modal and block interaction with main window. In this modal window i have lineedits too. When i clicked them my keyboard shows up but i cant interact with keyboard. Modal window block keyboard too.

    Its like this:
    modalwindow.jpg

    I want to open keyboard on top of the modal so i can use keyboard on modal window too. How can i do this?

    jsulmJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @masa4 How do you open your keyboard window?

      M Offline
      M Offline
      masa4
      wrote on last edited by
      #3

      @jsulm never mind, i solved it with removing setWindowModality(Qt::ApplicationModal); and adding setWindowFlags(Qt::WindowStaysOnTopHint|Qt::FramelessWindowHint); it. It still works like modal window and its possible to interact with keyboard since i added WindowStaysOnTopHint flag to keyboard too.

      1 Reply Last reply
      1
      • M masa4

        In my program im using integrated keyboard that i developed. When lineedit fields focused it shows up. But one of my window opens as modal and block interaction with main window. In this modal window i have lineedits too. When i clicked them my keyboard shows up but i cant interact with keyboard. Modal window block keyboard too.

        Its like this:
        modalwindow.jpg

        I want to open keyboard on top of the modal so i can use keyboard on modal window too. How can i do this?

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

        @masa4 How do you open your keyboard window?

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

        M 1 Reply Last reply
        0
        • jsulmJ jsulm

          @masa4 How do you open your keyboard window?

          M Offline
          M Offline
          masa4
          wrote on last edited by
          #3

          @jsulm never mind, i solved it with removing setWindowModality(Qt::ApplicationModal); and adding setWindowFlags(Qt::WindowStaysOnTopHint|Qt::FramelessWindowHint); it. It still works like modal window and its possible to interact with keyboard since i added WindowStaysOnTopHint flag to keyboard too.

          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