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. QCheckBox and QRadioButton not displaying boxes or marks
Forum Updated to NodeBB v4.3 + New Features

QCheckBox and QRadioButton not displaying boxes or marks

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt6checkboxqqcheckbox
6 Posts 4 Posters 914 Views 2 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.
  • S Offline
    S Offline
    swurl
    wrote on 1 May 2023, 21:55 last edited by
    #1

    Whenever I open any Qt 6 application (whether written by me or not), checkboxes and radio buttons are rendering the text totally fine but don't show the checkbox/circle. Clicking the box/circle does change the state of the checkbox but it doesn't show it graphically. Here's an example in qt6ct:

    3d898bd7-b5b6-4a1d-9934-cfd77d941efe-image.png

    FWIW, here's my system info:

    OS: Artix Linux x86_64 
    Host: VivoBook_ASUSLaptop X512DA_X512DA 1.0 
    Kernel: 6.2.13-artix1-1 
    Uptime: 6 hours, 25 mins 
    Packages: 1698 (pacman) 
    Shell: zsh 5.9 
    Resolution: 1920x1080 
    WM: sway 
    Theme: Artix-dark [GTK3] 
    Icons: breeze-dark [GTK3] 
    Terminal: kitty 
    CPU: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (8) @ 2.300GHz 
    GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
    Memory: 5842MiB / 9894MiB 
    

    note that I am not running a DE, instead, I'm running pure Sway (wayland). This problem occurs both under the xcb and the wayland platforms.

    S 1 Reply Last reply 2 May 2023, 20:27
    0
    • S swurl
      1 May 2023, 21:55

      Whenever I open any Qt 6 application (whether written by me or not), checkboxes and radio buttons are rendering the text totally fine but don't show the checkbox/circle. Clicking the box/circle does change the state of the checkbox but it doesn't show it graphically. Here's an example in qt6ct:

      3d898bd7-b5b6-4a1d-9934-cfd77d941efe-image.png

      FWIW, here's my system info:

      OS: Artix Linux x86_64 
      Host: VivoBook_ASUSLaptop X512DA_X512DA 1.0 
      Kernel: 6.2.13-artix1-1 
      Uptime: 6 hours, 25 mins 
      Packages: 1698 (pacman) 
      Shell: zsh 5.9 
      Resolution: 1920x1080 
      WM: sway 
      Theme: Artix-dark [GTK3] 
      Icons: breeze-dark [GTK3] 
      Terminal: kitty 
      CPU: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (8) @ 2.300GHz 
      GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
      Memory: 5842MiB / 9894MiB 
      

      note that I am not running a DE, instead, I'm running pure Sway (wayland). This problem occurs both under the xcb and the wayland platforms.

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 May 2023, 20:27 last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt 6 is it ?
      Can you share a minimal compilable example ? So we can check that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C S 2 Replies Last reply 2 May 2023, 20:30
      0
      • S SGaist
        2 May 2023, 20:27

        Hi and welcome to devnet,

        Which version of Qt 6 is it ?
        Can you share a minimal compilable example ? So we can check that.

        C Offline
        C Offline
        CPPUIX
        wrote on 2 May 2023, 20:30 last edited by
        #3

        @SGaist there's more here, but no mention of the exact Qt version, just that he's using qt6ct.

        1 Reply Last reply
        0
        • S SGaist
          2 May 2023, 20:27

          Hi and welcome to devnet,

          Which version of Qt 6 is it ?
          Can you share a minimal compilable example ? So we can check that.

          S Offline
          S Offline
          swurl
          wrote on 2 May 2023, 21:19 last edited by
          #4

          @SGaist Qt 6.5.0. This happens in all Qt 6 applications, whether it be qt6ct or a home-compiled application.

          C 1 Reply Last reply 2 May 2023, 21:32
          0
          • S swurl
            2 May 2023, 21:19

            @SGaist Qt 6.5.0. This happens in all Qt 6 applications, whether it be qt6ct or a home-compiled application.

            C Offline
            C Offline
            ChrisW67
            wrote on 2 May 2023, 21:32 last edited by
            #5

            @swurl Does the behaviour change if you execute the program thus: qt6ct -style Fusion or qt6ct -style windows ? This could be an attempt to apply a GTK-like theme to Qt.

            S 1 Reply Last reply 3 May 2023, 21:25
            0
            • C ChrisW67
              2 May 2023, 21:32

              @swurl Does the behaviour change if you execute the program thus: qt6ct -style Fusion or qt6ct -style windows ? This could be an attempt to apply a GTK-like theme to Qt.

              S Offline
              S Offline
              swurl
              wrote on 3 May 2023, 21:25 last edited by
              #6

              @ChrisW67 It did not. I ended up reinstalling Linux and that seems to have fixed it. I still have the old install available so I'd like to find out the root cause still.

              1 Reply Last reply
              0

              4/6

              2 May 2023, 21:19

              • Login

              • Login or register to search.
              4 out of 6
              • First post
                4/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved