Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Both use qml window and qwidget ?
Qt 6.11 is out! See what's new in the release blog

Both use qml window and qwidget ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 698 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
    Mr Pang
    wrote on last edited by
    #1

    Hi,
    I am write a file manager for android phone. I have found that using qml TextEdit to show large text file needs so much memory.So I use QWidget to write the text editor.
    A simple QML ListView is used to show the filesystem. When user click a text file,the app will create a custom QWidget to show it.
    On pc, this behavior will open a new window. On android, it seems that a new "app" is starting. But when I touch the QPlainTextEdit in QWidget, screen will flash. I guess the reason is that both qml and qwidget accepts the touch event,
    so system is trying to draw both window at same time.
    My code is too long to paste here. The QWidget has no parent.
    Does someone understand what I said?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mr Pang
      wrote on last edited by
      #2

      I made a mistake. Screen flash problem appears when I touch and hold in QPlainTextEdit area .
      So it has nothing to do with qml

      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