Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt5 C++:QCheckBox does not display checkbox #347

Open
bigbang95 opened this issue Mar 8, 2024 · 0 comments
Open

Qt5 C++:QCheckBox does not display checkbox #347

bigbang95 opened this issue Mar 8, 2024 · 0 comments

Comments

@bigbang95
Copy link

Describe Your Environment

[Versions from your environment]

  • QDarkStyle: v.3.2.3
  • OS: Win10 19045
  • Qt: 5.15.2
  • VS2019 msvc

Language

C++

What is the problem?

As shown in the following figure, for the light and dark theme, the QCheckBox control does not display the checkbox on the left square

normal:
2024-03-08_092150

problem:
2024-03-08_092246
2024-03-08_092333

QDarkStyle installation steps

  1. code:
	QFile f("qdarkstyle/light/lightstyle.qss");

	if (!f.exists()) {
		QMessageBox::warning(this, "", "Unable to set stylesheet, file not found\n");
	}
	else {
		f.open(QFile::ReadOnly | QFile::Text);
		QTextStream ts(&f);
		qApp->setStyleSheet(ts.readAll());
	}
  1. Copy qdarkstyle to the program root directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant