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. qt::ascendingorder problem
Forum Updated to NodeBB v4.3 + New Features

qt::ascendingorder problem

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

    Hello i have a little problem because i want to sort tableview by column and use this code:

    ui->tableView->sortByColumn(index,Qt::AscendingOrder);
    

    It's do great job but if cell contains polish letters on first Letter , cell is placed on end tableview.

    Someone have idea, how i can repair it ?

    K 1 Reply Last reply
    0
    • R R4leY

      Hello i have a little problem because i want to sort tableview by column and use this code:

      ui->tableView->sortByColumn(index,Qt::AscendingOrder);
      

      It's do great job but if cell contains polish letters on first Letter , cell is placed on end tableview.

      Someone have idea, how i can repair it ?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @R4leY

      Hi and welcome to devnet forum

      The sorting is based on Latin-1 and the order is given here. That explains probably the ordering you currently see.

      As a solution you probably have to use a custom sort filter model. I am suggesting to have a close look to this example and try to run the example. Unfortunately I do have enough experience to help you right away. However, pleasedo not hesitate to raise questions in the forum when you have trouble to understand.

      Vote the answer(s) that helped you to solve your issue(s)

      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