Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Compare Items of listview and aray

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    S
    @Psyduck0205 I too facing similar issue. I need to access list of qvariant from squish? Can you help me ?
  • Random Text

    Unsolved
    2
    0 Votes
    2 Posts
    344 Views
    SGaistS
    Hi, You can take a look at the fortune example for a way of generating random text.
  • Add client certificate to QQuickWebEngineProfile clientCertificateStore in QML

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    N
    ugh. I guess this feature has just been broken for over a year with misleading documentation. no big deal. thanks for your help everybody. https://bugreports.qt.io/browse/QTBUG-86132
  • Use a shader to hide part of an image

    Solved shadereffect
    2
    0 Votes
    2 Posts
    449 Views
    P
    Ok, I figured it out ! The shader does not change the Image, it just draws something else on the shader item's position. The solution was pretty darn simple: make the Image invisible and let the shadereffect item handle all the rendering part.
  • Qt shut down when I click Design mode

    Unsolved
    1
    0 Votes
    1 Posts
    155 Views
    No one has replied
  • QList<customObj *> in QML not working on raspberry

    Unsolved
    4
    0 Votes
    4 Posts
    332 Views
    P
    Yes QList<QObject*> is working. But why QList<SENSOR*> work on my Desktop and not work on raspberry???
  • WebEngineView cannot run WebGL

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    raven-worxR
    @DiegOne hmm, still rather strange
  • Animation of PathView delegate

    Unsolved
    3
    0 Votes
    3 Posts
    334 Views
    M
    @fcarney I removed the Component but the error is the same: QML PropertyAnimation: Cannot animate non-existent property "y" But now the Item should have the y property, right?
  • Qt/QML 5.15.5 How to set logical DPI to 96

    Unsolved
    2
    0 Votes
    2 Posts
    724 Views
    V
    It would appear to be that there is an environment variable that will do this, not perfectly, but certainly vastly better than previously. Sadly, the very limited documentation on it implies it is only something for development purposes, presenting a clumsy way to look at your app using different DPI settings. The following, placed in main.cpp, worked. Yes, it could be set in the environment as well, having first tested it as a .profile entry. qputenv("QT_FONT_DPI", QByteArray("96")); 96 DPI is just a reference value on which Qt should be doing the appropriate scaling internally. It could be almost anything and still achieve the same results. Virtual pixels are obviously used for GUI components, why not consistently for the fonts. Though we are seeing what appears like a font substitution as well. Best guess is that Arial is being substituted for Liberation Sans, even though Liberation Sans is installed on all systems and is specifically loaded by the application. For example, the zero is much narrower on my system than on the target, as is the case of the zero in Arial as opposed to Liberation Sans.
  • 0 Votes
    18 Posts
    48k Views
    R
    This is really informative.
  • BusyIndicator stops animating

    Unsolved
    2
    0 Votes
    2 Posts
    362 Views
    C
    I've worked around this by putting the Popup in a separate qml file and using a Loader to get a fresh Popup every time I want to display it. But it still seems broken that a Popup can't be open/closed multiple times and have the BusyIndicator just continue to work.
  • 0 Votes
    1 Posts
    140 Views
    No one has replied
  • Qt no service found for - "org.qt-project. qt.mediaplayer "

    Solved
    2
    0 Votes
    2 Posts
    217 Views
    SGaistS
    Hi, Are you sure that the backend plugins are built ? Did you set them up properly in your .pro file ?
  • QtQuick bug in qt6.2 - TableView has no selectionModel property in Quick 2.2

    Unsolved
    1
    0 Votes
    1 Posts
    171 Views
    No one has replied
  • How to render only in a single QQuickItem?

    Unsolved
    1
    0 Votes
    1 Posts
    219 Views
    No one has replied
  • SpinBox showing a frame

    Unsolved
    3
    0 Votes
    3 Posts
    287 Views
    A
    Anyone, please?
  • custom minimize button in qml

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    raven-worxR
    @qAminzzz https://doc.qt.io/qt-5/qml-qtquick-window-window.html#showMinimized-method
  • customizing QTabWidget

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    M
    auto cutDir = QCoreApplication::applicationDirPath(); auto resFile = cutDir + "/TabWidget.css"; QFile cssFile(resFile); if( cssFile.open(QFile::ReadOnly)) { QString styleSheet = QLatin1String(cssFile.readAll()); ui->tabWidget->setStyleSheet(styleSheet); cssFile.close(); } auto tab1 = new QTabBar; auto tab2 = new QTabBar; auto tab3= new QTabBar; /*tabLayout->addWidget(btn); ui->tabWidget->setLayout(tabLayout);*/ // tab1->setObjectName(QStringLiteral("TabName")); ui->tabWidget->setTabsClosable(true); ui->tabWidget->addTab(tab1,QStringLiteral("网易中国")); ui->tabWidget->addTab(tab2,QStringLiteral("百度")); ui->tabWidget->addTab(tab3,QStringLiteral("爱奇艺")); and the file TabWidget.css is below: QTabWidget::pane { /* The tab widget frame */ border-top: 1px solid #C2C7CB; padding:20px; } QTabWidget::tab-bar { left: 2px; /* move to the right by 5px */ } QTabWidget{ background-color:#ffffff; } /* Style the tab using the tab sub-control. Note that it reads QTabBar not QTabWidget */ QTabBar::tab { /*margin:0px;/0 这里可以让tab 跟 TabWidget连成一片/ margin-left:4px; padding:4px; border-top-left-radius: 6px; border-top-right-radius: 6px; background:#ffffff; border:1px solid #d9d9d9; border-bottom:0px none; min-height:20px; } QTabBar::tab:selected { border-color: #9B9B9B; border-bottom-color: #00ffff; /* same as pane color */ margin-bottom:-1px; }
  • signal action only specific object

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • How to create a Calendar with newer QtQuick?

    Unsolved
    3
    0 Votes
    3 Posts
    480 Views
    KroMignonK
    @markusme said in How to create a Calendar with newer QtQuick?: How do I create a Calendar in newer (2.x) version of QtQuick?? Fresh install with Qt version 5.15 and nothing online works. Just huge amounts of old and outdated tutorials on the Qt website. Just to be sure, I hope your are talking about Qt Kit version not Qt Version used to build Qt Creator (like the screenshot posted by @Markkyboy ) Did you select the right kit in Qt Maintenance tool? For example for Windows 32 bits: [image: b24febf8-59fe-4cbb-a66e-c3ef8e5f06f1.png]