Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. search
    Log in to post

    • UNSOLVED how to split a string and set as variable then show in plaintext editor?
      General and Desktop • qt5 string search variable setplaintext • • vehicular  

      4
      0
      Votes
      4
      Posts
      279
      Views

      You already use QTextStream::readLine() - so why do you read it with ifstream before? You simply read it twice for no reason.
    • SOLVED Searching word found after several clicks!
      General and Desktop • qtcreator tableview button search • • Lasith  

      4
      0
      Votes
      4
      Posts
      1116
      Views

      Hi, More likely that not all your database data are loaded in memory. You would have to call fetchMore however beware that if you have big tables it's going to cost you more in RAM.
    • SOLVED SQL query not loading back
      General and Desktop • qtableview button search results • • Lasith  

      11
      0
      Votes
      11
      Posts
      2048
      Views

      @VRonin I got it corrected! searchProxy->setSourceModel(modal); ui->tableView->setModel(searchProxy); should be put inside the search button method!
    • UNSOLVED Searching a QTable widget items using wild cards!
      General and Desktop • qtabwidget item search wildcards • • Lasith  

      3
      0
      Votes
      3
      Posts
      1392
      Views

      separate QTableWidget into a QTableView and a QStandardItemModel add a QSortFilterProxyModel as the model of QTableView and set the QStandardItemModel as the QSortFilterProxyModel's sourceModel call QSortFilterProxyModel::setFilterWildcard or QSortFilterProxyModel::setFilterRegExp to perform the searching See Basic Sort/Filter Model Example
    • SOLVED "The program has unexpectedly finished unexpectedly" in qt c++
      General and Desktop • error qtablewidget item search • • Lasith  

      3
      0
      Votes
      3
      Posts
      1851
      Views

      @Lasith Instead of 100 use ui->tableWidget->rowCount().
    • UNSOLVED Qt Creator: When I have a file in a subdir of the project, it's not included in project-wide search
      Tools • qt creator search qt creator 4.1 • • Stefan Monov76  

      4
      0
      Votes
      4
      Posts
      1480
      Views

      @Stefan-Monov76 Since I am not using qml I am not sure what requirements there are. I am working with C++ where you distinguish between source (.cpp) and header (.h included in *.cpp) files. The compiler requires basically only the *.cpp files for compiling. The header files are found through INCLUDEPATH or also other means settings. Being lazy you could think of just added *.cpp files to your .pro. However, this is a really bad idea, because Qt creator cannot detect that those have changed respectively there might be no dependency on includes in your make. Sometimes you simply forget an include to add to .pro and I have noticed that those includes are searched. That it is working for you now, may have something to do with a rerun of qmake. Just wait and see, if teh problem comes back. Eventually for some reason qmake was not triggered. Note: Since I am not working with qml at all, I am not sure, if you are actually using qmake. Checkout if you actually have "Run qmake" under "Buld" available.
    • SOLVED Converting search string to QRegularExpression pattern
      General and Desktop • search qregularexpress • • Joel Bodenmann  

      2
      0
      Votes
      2
      Posts
      669
      Views

      Never mind. QRegularExpression::escape() does exactly what I want.
    • SOLVED How to add Search Bar to a drawer ?
      QML and Qt Quick • qml qt quick controls 2 search • • Qjay  

      2
      0
      Votes
      2
      Posts
      1477
      Views

      See this, is very simple. I put a ColumnLayout in a drawer and modified the content to have a space to a header in the drawer and your actions list. Drawer { id: drawer width: Math.min(window.width, window.height) / 3 * 2 height: window.height ColumnLayout { anchors.fill: parent Rectangle { width: drawer.width height: 100 Label { text: "Change this pane as you desire" anchors.centerIn: parent wrapMode: Text.WordWrap } } ListView { id: listView currentIndex: -1 Layout.fillWidth: true Layout.fillHeight: true delegate: ItemDelegate { width: parent.width text: model.title highlighted: ListView.isCurrentItem onClicked: { if (listView.currentIndex != index) { listView.currentIndex = index titleLabel.text = model.title stackView.replace(model.source) } drawer.close() } } model: ListModel { ListElement { title: "Get New Pages"; source: "qrc:/pages/get_new_pages.qml" } ListElement { title: "Manage Pages"; source: "qrc:/pages/manage_pages.qml" } } ScrollIndicator.vertical: ScrollIndicator { } } } }
    • UNSOLVED QTreeview filtering search
      General and Desktop • qtreeview search filter • • JokerMartini  

      5
      0
      Votes
      5
      Posts
      7379
      Views

      @mmoerdijk since Qt 5.10 there is a recursiveFilteringEnabled property on a QSortFilterProxyModel, which does exactly this.
    • UNSOLVED Searching for nearest node in n-ary tree?
      General and Desktop • search tree n-ary-tree • • alogim  

      3
      0
      Votes
      3
      Posts
      1057
      Views

      @alogim You're sort of naively using the simplest form of the tree data structure. If I understand your question correctly you should look at some BSP tree structure implementations, as they seem to suit your case quite well.
    • Search up/down using QsciScintilla
      General and Desktop • windows qlineedit search qsciscintilla • • Yatshan  

      3
      0
      Votes
      3
      Posts
      1154
      Views

      @Yatshan said in Search up/down using QsciScintilla: m_pTextEdit->SendScintilla(QsciScintilla::SCI_INDICATORCLEARRANGE, 0, data.length()); This really helped me with clearing all the highlights! I tried QsciScintilla::SCI_MARKERDELETEALL for many times but no luck. Thanks!
    • Forum search query syntax
      General and Desktop • search • • pauljurczak  

      1
      0
      Votes
      1
      Posts
      690
      Views

      No one has replied