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. QSqlTableModel modifying a table glitch
Forum Updated to NodeBB v4.3 + New Features

QSqlTableModel modifying a table glitch

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

    0_1552827818839_a9677215-7a14-4d32-a822-24db9f913ed7-Screenshot 2019-03-17 at 15.02.34.png Screenshot 2019-03-17 at 15.02.34

    So when creating a program to edit the contents of a database table then the value that is entered is white and barely visible. How do I fix this?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Do you have a delegate that could interfere. ?

      F 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Do you have a delegate that could interfere. ?

        F Offline
        F Offline
        Fuchsiaff
        wrote on last edited by
        #3

        @mrjj

        Not that I know of.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          well QSqlTableModel would not do so by itself so
          unless you are using setWiget/ delegates or custom view, I have no idea
          where the white text would come from.
          Do you use stylesheets on the app?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Fuchsiaff
            wrote on last edited by
            #5

            For some reason my stylesheet makes it not work correctly, even though I didn't find anything about item delegate in there.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fuchsiaff
              wrote on last edited by
              #6

              I guess I will rewrite my stylesheet and debug what might break the table behaviour.

              mrjjM 1 Reply Last reply
              0
              • F Fuchsiaff

                I guess I will rewrite my stylesheet and debug what might break the table behaviour.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Fuchsiaff
                Its hard to guess at with no code but it seems that something is altering the text color
                for the item. And a good guess would be a stylesheet.

                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