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

Cannot access children! #1028

Open
Redsky48 opened this issue Sep 23, 2023 · 0 comments
Open

Cannot access children! #1028

Redsky48 opened this issue Sep 23, 2023 · 0 comments

Comments

@Redsky48
Copy link

When creting
let weatherLayout = new QBoxLayout(Direction.TopToBottom);

and then

const weatherEntry = new QLabel();
        weatherEntry.setText(`
          🕒 ${time} 
          ${emoji} ${temp}°C
          🌬️ ${speed} m/s
        `);
        weatherEntry.setObjectName("weatherEntry");
        weatherLayout.addWidget(weatherEntry);

and then

       weatherLayout.count()   // 1
       weatherLayout.children()   // []

So the children elements are not showing up for me.

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